Debian Codegraph @

curl/tests/data/test193

raw
1 #
2 # Server-side
3 <reply>
4 <data nocheck=1>
5 HTTP/1.1 302 OK swsbounce swsclose
6 Date: Thu, 09 Nov 2010 14:49:00 GMT
7 Content-Length: 8
8 Connection: close
9 Location: ./193
10
11 monster
12 </data>
13 <data1 nocheck=1>
14 HTTP/1.1 200 OK
15 Date: Thu, 09 Nov 2010 14:49:00 GMT
16 Content-Length: 8
17 Connection: close
18
19 monster
20 </data1>
21
22 </reply>
23
24 #
25 # Client-side
26 <client>
27 <server>
28 http
29 </server>
30 <name>
31 HTTP GET -w num_connects with redirected fetch (2 connects)
32 </name>
33 <command>
34 http://%HOSTIP:%HTTPPORT/193 -w '%{num_connects}\n' -L
35 </command>
36 </client>
37
38 #
39 # Verify data after the test has been "shot"
40 <verify>
41 <strip>
42 ^User-Agent:.*
43 </strip>
44 <protocol>
45 GET /193 HTTP/1.1
46 Host: 127.0.0.1:%HTTPPORT
47 Accept: */*
48
49 GET /193 HTTP/1.1
50 Host: 127.0.0.1:%HTTPPORT
51 Accept: */*
52
53 </protocol>
54
55 <stdout>
56 HTTP/1.1 302 OK swsbounce swsclose
57 Date: Thu, 09 Nov 2010 14:49:00 GMT
58 Content-Length: 8
59 Connection: close
60 Location: ./193
61
62 HTTP/1.1 200 OK
63 Date: Thu, 09 Nov 2010 14:49:00 GMT
64 Content-Length: 8
65 Connection: close
66
67 monster
68 2
69 </stdout>
70
71 </verify>