Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test43
blob65f6a546633b05cd03061ed3aef41be630e8b571
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 followlocation
7 HTTP proxy
8 </keywords>
9 </info>
10 # Server-side
11 <reply>
12 <data>
13 HTTP/1.1 301 This is a weirdo text message
14 Date: Thu, 09 Nov 2010 14:49:00 GMT
15 Server: test-server/fake
16 Location: data/430002.txt?coolsite=yes
17 Connection: close
19 This server reply is for testing a simple Location: following
21 </data>
22 <data2>
23 HTTP/1.1 200 Followed here fine swsclose
24 Date: Thu, 09 Nov 2010 14:49:00 GMT
25 Server: test-server/fake
26 Content-Length: 52
28 If this is received, the location following worked
30 </data2>
31 <datacheck>
32 HTTP/1.1 301 This is a weirdo text message
33 Date: Thu, 09 Nov 2010 14:49:00 GMT
34 Server: test-server/fake
35 Location: data/430002.txt?coolsite=yes
36 Connection: close
38 HTTP/1.1 200 Followed here fine swsclose
39 Date: Thu, 09 Nov 2010 14:49:00 GMT
40 Server: test-server/fake
41 Content-Length: 52
43 If this is received, the location following worked
45 </datacheck>
46 </reply>
48 # Client-side
49 <client>
50 <server>
51 http
52 </server>
53  <name>
54 HTTP Location: following over HTTP proxy
55  </name>
56  <command>
57 http://%HOSTIP:%HTTPPORT/want/43 -L -x %HOSTIP:%HTTPPORT
58 </command>
59 </client>
61 # Verify data after the test has been "shot"
62 <verify>
63 <strip>
64 ^User-Agent:.*
65 </strip>
66 <protocol>
67 GET http://%HOSTIP:%HTTPPORT/want/43 HTTP/1.1
68 Host: %HOSTIP:%HTTPPORT
69 Pragma: no-cache
70 Accept: */*
71 Proxy-Connection: Keep-Alive
73 GET http://%HOSTIP:%HTTPPORT/want/data/430002.txt?coolsite=yes HTTP/1.1
74 Host: %HOSTIP:%HTTPPORT
75 Pragma: no-cache
76 Accept: */*
77 Proxy-Connection: Keep-Alive
79 </protocol>
80 </verify>
81 </testcase>