Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test193
blob93f6591ca36d9555af225be497e3d40c7f083e2a
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP GET
6 followlocation
7 --write-out
8 </keywords>
9 </info>
12 # Server-side
13 <reply>
14 <data nocheck="1">
15 HTTP/1.1 302 OK swsbounce swsclose
16 Date: Thu, 09 Nov 2010 14:49:00 GMT
17 Content-Length: 8
18 Connection: close
19 Location: ./193
21 monster
22 </data>
23 <data1 nocheck="1">
24 HTTP/1.1 200 OK
25 Date: Thu, 09 Nov 2010 14:49:00 GMT
26 Content-Length: 8
27 Connection: close
29 monster
30 </data1>
32 </reply>
35 # Client-side
36 <client>
37 <server>
38 http
39 </server>
40  <name>
41 HTTP GET -w num_connects with redirected fetch (2 connects)
42  </name>
43  <command>
44 http://%HOSTIP:%HTTPPORT/193 -w "%{num_connects}\n" -L
45 </command>
46 </client>
49 # Verify data after the test has been "shot"
50 <verify>
51 <strip>
52 ^User-Agent:.*
53 </strip>
54 <protocol>
55 GET /193 HTTP/1.1
56 Host: %HOSTIP:%HTTPPORT
57 Accept: */*
59 GET /193 HTTP/1.1
60 Host: %HOSTIP:%HTTPPORT
61 Accept: */*
63 </protocol>
65 <stdout>
66 HTTP/1.1 302 OK swsbounce swsclose
67 Date: Thu, 09 Nov 2010 14:49:00 GMT
68 Content-Length: 8
69 Connection: close
70 Location: ./193
72 HTTP/1.1 200 OK
73 Date: Thu, 09 Nov 2010 14:49:00 GMT
74 Content-Length: 8
75 Connection: close
77 monster
79 </stdout>
81 </verify>
82 </testcase>