Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test189
blob208087c841e5f5287539da0947859e8abe25b6e3
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 301 OK swsbounce
6 Location: /189
7 Content-Length: 2
9 OK
10 </data>
11 <data1>
12 HTTP/1.1 200 OK 
13 Connection: close
14 Content-Length: 15
16 Actual content
17 </data1>
19 <datacheck>
20 HTTP/1.1 301 OK swsbounce
21 Location: /189
22 Content-Length: 2
24 HTTP/1.1 200 OK 
25 Connection: close
26 Content-Length: 15
28 </datacheck>
30 </reply>
32 # Client-side
33 <client>
34 <server>
35 http
36 </server>
37  <name>
38 HTTP GET with resume and redirect (to a page that doesn't resume)
39  </name>
40  <command>
41 http://%HOSTIP:%HTTPPORT/189 -C 50 -L
42 </command>
43 </client>
45 # Verify data after the test has been "shot"
46 <verify>
47 <strip>
48 ^User-Agent:.*
49 </strip>
50 <protocol>
51 GET /189 HTTP/1.1
52 Range: bytes=50-
53 User-Agent: curl/7.6 (sparc-sun-solaris2.7) libcurl 7.6-pre4 (SSL 0.9.6) (krb4 enabled)
54 Host: %HOSTIP:%HTTPPORT
55 Accept: */*
57 GET /189 HTTP/1.1
58 Range: bytes=50-
59 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
60 Host: %HOSTIP:%HTTPPORT
61 Accept: */*
63 </protocol>
64 # 33 is CURLE_RANGE_ERROR
65 <errorcode>
67 </errorcode>
68 </verify>
69 </testcase>