Initial commit of visual studio 9 git build superproject.
[git-build-vc9.git] / curl / tests / data / test2003
blobb6938166bb8f1e8fec2d5f96efe7977608c627e4
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 FTP
7 PASV
8 FILE
9 TFTP
10 TFTP RRQ
11 multiprotocol
12 </keywords>
13 </info>
16 # Server-side
17 <reply>
18 <data1 nocheck="1">
19 HTTP/1.1 200 OK\r
20 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
21 Server: test-server/fake\r
22 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
23 ETag: "21025-dc7-39462498"\r
24 Accept-Ranges: bytes\r
25 Content-Length: 6\r
26 Connection: close\r
27 Content-Type: text/html\r
28 Funny-head: yesyes\r
30 -foo-
31 </data1>
32 <data2 nocheck="1">
33 data
34     to
35       see
36 that FTP
37 works
38   so does it?
39 </data2>
40 <data3 nocheck="1">
41 a chunk of
42 data
43 returned
44  to TFTP client
45 </data3>
46 </reply>
49 # Client-side
50 <client>
51 <server>
52 http
53 ftp
54 file
55 tftp
56 </server>
57  <name>
58 HTTP GET followed by FTP RETR followed by FILE followed by TFTP RRQ then again in reverse order
59  </name>
60  <command>
61 http://%HOSTIP:%HTTPPORT/20030001 ftp://%HOSTIP:%FTPPORT/20030002 file://localhost/%PWD/log/test2003.txt tftp://%HOSTIP:%TFTPPORT//20030003 tftp://%HOSTIP:%TFTPPORT//20030003 file://localhost/%PWD/log/test2003.txt ftp://%HOSTIP:%FTPPORT/20030002 http://%HOSTIP:%HTTPPORT/20030001 
62 </command>
63 <file name="log/test2003.txt">
64 foo
65    bar
66 bar
67    foo
68 moo
69 </file>
70 </client>
73 # Verify data after the test has been "shot"
74 <verify>
75 <strip>
76 ^User-Agent:.*
77 </strip>
78 <protocol>
79 GET /20030001 HTTP/1.1\r
80 Host: %HOSTIP:%HTTPPORT\r
81 Accept: */*\r
83 USER anonymous\r
84 PASS ftp@example.com\r
85 PWD\r
86 EPSV\r
87 TYPE I\r
88 SIZE 20030002\r
89 RETR 20030002\r
90 opcode: 1
91 filename: /20030003
92 mode: octet
93 opcode: 1
94 filename: /20030003
95 mode: octet
96 EPSV\r
97 SIZE 20030002\r
98 RETR 20030002\r
99 GET /20030001 HTTP/1.1\r
100 Host: %HOSTIP:%HTTPPORT\r
101 Accept: */*\r
103 QUIT\r
104 </protocol>
105 <stdout>
106 HTTP/1.1 200 OK\r
107 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
108 Server: test-server/fake\r
109 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
110 ETag: "21025-dc7-39462498"\r
111 Accept-Ranges: bytes\r
112 Content-Length: 6\r
113 Connection: close\r
114 Content-Type: text/html\r
115 Funny-head: yesyes\r
117 -foo-
118 data
119     to
120       see
121 that FTP
122 works
123   so does it?
125    bar
127    foo
129 a chunk of
130 data
131 returned
132  to TFTP client
133 a chunk of
134 data
135 returned
136  to TFTP client
138    bar
140    foo
142 data
143     to
144       see
145 that FTP
146 works
147   so does it?
148 HTTP/1.1 200 OK\r
149 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
150 Server: test-server/fake\r
151 Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT\r
152 ETag: "21025-dc7-39462498"\r
153 Accept-Ranges: bytes\r
154 Content-Length: 6\r
155 Connection: close\r
156 Content-Type: text/html\r
157 Funny-head: yesyes\r
159 -foo-
160 </stdout>
161 </verify>
162 </testcase>