Base code merged to SPIN 2.4
[platform/upstream/curl.git] / tests / data / test599
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 </keywords>
7 </info>
8 #
9 # Server-side
10 <reply>
11 <data>
12 HTTP/1.1 302 OK\r
13 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
14 Server: test-server/fake\r
15 Location: 5990001\r
16 Content-Length: 6\r
17 Connection: close\r
18 Content-Type: text/html\r
19 \r
20 -foo-
21 </data>
22 <data1>
23 HTTP/1.1 200 OK\r
24 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
25 Server: test-server/fake\r
26 Transfer-Encoding: chunked\r
27 Connection: close\r
28 Content-Type: text/html\r
29 \r
30 32\r
31 this data is slightly larger than the first piece
32 \r
33 0\r
34 \r
35 </data1>
36
37 <datacheck>
38 HTTP/1.1 302 OK\r
39 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
40 Server: test-server/fake\r
41 Location: 5990001\r
42 Content-Length: 6\r
43 Connection: close\r
44 Content-Type: text/html\r
45 \r
46 HTTP/1.1 200 OK\r
47 Date: Thu, 09 Nov 2010 14:49:00 GMT\r
48 Server: test-server/fake\r
49 Transfer-Encoding: chunked\r
50 Connection: close\r
51 Content-Type: text/html\r
52 \r
53 this data is slightly larger than the first piece
54 </datacheck>
55
56 </reply>
57
58 # Client-side
59 <client>
60 <server>
61 http
62 </server>
63 # tool is what to use instead of 'curl'
64 <tool>
65 lib599
66 </tool>
67
68 # Bug 3510057 pointed out that when following a location to a larger chunked
69 # encoded page, the first size would still be used in the progress callback
70  <name>
71 HTTP GET with progress callback and redirects changing content sizes
72  </name>
73  <command>
74 http://%HOSTIP:%HTTPPORT/599 log/ip599
75 </command>
76 </client>
77
78 #
79 # Verify data after the test has been "shot"
80 <verify>
81 <file name="log/ip599">
82 CL: -1
83 </file>
84 </verify>
85 </testcase>