Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test188
blob4443ee9cea0923a61a73b6cd7a7395de1a9c26ef
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 Content-Range
7 Resume
8 followlocation
9 </keywords>
10 </info>
12 # Server-side
13 <reply>
14 <data>
15 HTTP/1.1 301 OK swsbounce
16 Location: /188
17 Content-Length: 2
20 </data>
21 <data1>
22 HTTP/1.1 200 OK 
23 Connection: close
24 Content-Length: 15
25 Content-Range: bytes 50-
27 Actual content
28 </data1>
30 <datacheck>
31 HTTP/1.1 301 OK swsbounce
32 Location: /188
33 Content-Length: 2
35 HTTP/1.1 200 OK 
36 Connection: close
37 Content-Length: 15
38 Content-Range: bytes 50-
40 Actual content
41 </datacheck>
43 </reply>
45 # Client-side
46 <client>
47 <server>
48 http
49 </server>
50  <name>
51 HTTP GET with resume and redirect
52  </name>
53  <command>
54 http://%HOSTIP:%HTTPPORT/188 -C 50 -L
55 </command>
56 </client>
58 # Verify data after the test has been "shot"
59 <verify>
60 <strip>
61 ^User-Agent:.*
62 </strip>
63 <protocol>
64 GET /188 HTTP/1.1
65 Range: bytes=50-
66 User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled)
67 Host: %HOSTIP:%HTTPPORT
68 Accept: */*
70 GET /188 HTTP/1.1
71 Range: bytes=50-
72 User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.7d zlib/1.2.1.2 libidn/0.5.2
73 Host: %HOSTIP:%HTTPPORT
74 Accept: */*
76 </protocol>
77 </verify>
78 </testcase>