Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test184
blob8b175ed1f5e9d453d5e48ade58871850b9f50c48
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: http://yet.another.host/184
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: http://yet.another.host/184
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: to new host
48  </name>
49  <command>
50 http://deathstar.another.galaxy/184 -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/184 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://yet.another.host/184 HTTP/1.1
68 Host: yet.another.host
69 Pragma: no-cache
70 Accept: */*
71 Proxy-Connection: Keep-Alive
73 </protocol>
75 </verify>
76 </testcase>