blob: a1d5a9fc22a5ff9a9bca9c5b509b8d038d6f48a0 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6FTP
7PASV
8FILE
9TFTP
10TFTP RRQ
11multiprotocol
12</keywords>
13</info>
14
15#
16# Server-side
17<reply>
18<data1 nocheck="yes">
19HTTP/1.1 200 OK
20Date: Tue, 09 Nov 2010 14:49:00 GMT
21Server: test-server/fake
22Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
23ETag: "21025-dc7-39462498"
24Accept-Ranges: bytes
25Content-Length: 6
26Connection: close
27Content-Type: text/html
28Funny-head: yesyes
29
30-foo-
31</data1>
32<data2 nocheck="yes">
33data
34 to
35 see
36that FTP
37works
38 so does it?
39</data2>
40<data3 nocheck="yes">
41a chunk of
42data
43returned
44 to TFTP client
45</data3>
46</reply>
47
48#
49# Client-side
50<client>
51<server>
52http
53ftp
54file
55tftp
56</server>
57 <name>
58HTTP GET followed by FTP RETR followed by FILE followed by TFTP RRQ then again in reverse order
59 </name>
60<command option="no-include">
61http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001 ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002 file://localhost%FILE_PWD/log/test%TESTNUMBER.txt tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER0003 tftp://%HOSTIP:%TFTPPORT//%TESTNUMBER0003 file://localhost%FILE_PWD/log/test%TESTNUMBER.txt ftp://%HOSTIP:%FTPPORT/%TESTNUMBER0002 http://%HOSTIP:%HTTPPORT/%TESTNUMBER0001
62</command>
63<file name="log/test%TESTNUMBER.txt">
64foo
65 bar
66bar
67 foo
68moo
69</file>
70</client>
71
72#
73# Verify data after the test has been "shot"
74<verify>
75<protocol>
76GET /%TESTNUMBER0001 HTTP/1.1
77Host: %HOSTIP:%HTTPPORT
78User-Agent: curl/%VERSION
79Accept: */*
80
81USER anonymous
82PASS ftp@example.com
83PWD
84EPSV
85TYPE I
86SIZE %TESTNUMBER0002
87RETR %TESTNUMBER0002
88opcode = 1
89mode = octet
90tsize = 0
91blksize = 512
92timeout = 6
93filename = /%TESTNUMBER0003
94opcode = 1
95mode = octet
96tsize = 0
97blksize = 512
98timeout = 6
99filename = /%TESTNUMBER0003
100EPSV
101SIZE %TESTNUMBER0002
102RETR %TESTNUMBER0002
103GET /%TESTNUMBER0001 HTTP/1.1
104Host: %HOSTIP:%HTTPPORT
105User-Agent: curl/%VERSION
106Accept: */*
107
108QUIT
109</protocol>
110<stdout>
111-foo-
112data
113 to
114 see
115that FTP
116works
117 so does it?
118foo
119 bar
120bar
121 foo
122moo
123a chunk of
124data
125returned
126 to TFTP client
127a chunk of
128data
129returned
130 to TFTP client
131foo
132 bar
133bar
134 foo
135moo
136data
137 to
138 see
139that FTP
140works
141 so does it?
142-foo-
143</stdout>
144</verify>
145</testcase>