Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test185
blobea64e3a74d00343ade97dba882de5bce1e4f435c
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 followlocation
7 </keywords>
8 </info>
10 # Server-side
11 <reply>
12 <data>
13 HTTP/1.1 301 OK swsbounce
14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Content-Length: 4
16 Location: go/west/185
18 moo
19 </data>
20 <data1>
21 HTTP/1.1 200 OK
22 Date: Thu, 09 Nov 2010 14:49:00 GMT
23 Content-Length: 4
25 moo
26 </data1>
27 <datacheck>
28 HTTP/1.1 301 OK swsbounce
29 Date: Thu, 09 Nov 2010 14:49:00 GMT
30 Content-Length: 4
31 Location: go/west/185
33 HTTP/1.1 200 OK
34 Date: Thu, 09 Nov 2010 14:49:00 GMT
35 Content-Length: 4
37 moo
38 </datacheck>
39 </reply>
41 # Client-side
42 <client>
43 <server>
44 http
45 </server>
46  <name>
47 HTTP replace Host: when following Location: on the same host
48  </name>
49  <command>
50 http://deathstar.another.galaxy/185 -L -H "Host: another.visitor.stay.a.while.stay.foreeeeeever" --proxy http://%HOSTIP:%HTTPPORT
51 </command>
52 </client>
54 # Verify data after the test has been "shot"
55 <verify>
56 <strip>
57 ^User-Agent: curl/.*
58 </strip>
59 <protocol>
60 GET http://deathstar.another.galaxy/185 HTTP/1.1
61 User-Agent: curl/7.12.2-CVS (i686-pc-linux-gnu) libcurl/7.12.2-CVS OpenSSL/0.9.6b zlib/1.1.4 libidn/0.4.6
62 Pragma: no-cache
63 Accept: */*
64 Proxy-Connection: Keep-Alive
65 Host: another.visitor.stay.a.while.stay.foreeeeeever
67 GET http://deathstar.another.galaxy/go/west/185 HTTP/1.1
68 Pragma: no-cache
69 Accept: */*
70 Proxy-Connection: Keep-Alive
71 Host: another.visitor.stay.a.while.stay.foreeeeeever
73 </protocol>
75 </verify>
76 </testcase>