Debian Codegraph @

curl/tests/data/test184

raw
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 301 OK swsbounce
5 Date: Thu, 09 Nov 2010 14:49:00 GMT
6 Content-Length: 4
7 Location: http://yet.another.host/184
8
9 moo
10 </data>
11 <data1>
12 HTTP/1.1 200 OK
13 Date: Thu, 09 Nov 2010 14:49:00 GMT
14 Content-Length: 4
15
16 moo
17 </data1>
18 <datacheck>
19 HTTP/1.1 301 OK swsbounce
20 Date: Thu, 09 Nov 2010 14:49:00 GMT
21 Content-Length: 4
22 Location: http://yet.another.host/184
23
24 HTTP/1.1 200 OK
25 Date: Thu, 09 Nov 2010 14:49:00 GMT
26 Content-Length: 4
27
28 moo
29 </datacheck>
30 </reply>
31
32 # Client-side
33 <client>
34 <server>
35 http
36 </server>
37 <features>
38 SSL
39 </features>
40 <name>
41 HTTP replace Host: when following Location: to new host
42 </name>
43 <command>
44 http://deathstar.another.galaxy/184 -L -H "Host: another.visitor.stay.a.while.stay.foreeeeeever" --proxy http://%HOSTIP:%HTTPPORT
45 </command>
46 </client>
47
48 # Verify data after the test has been "shot"
49 <verify>
50 <strip>
51 ^User-Agent: curl/.*
52 </strip>
53 <protocol>
54 GET http://deathstar.another.galaxy/184 HTTP/1.1
55 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
56 Pragma: no-cache
57 Accept: */*
58 Proxy-Connection: Keep-Alive
59 Host: another.visitor.stay.a.while.stay.foreeeeeever
60
61 GET http://yet.another.host/184 HTTP/1.1
62 Host: yet.another.host
63 Pragma: no-cache
64 Accept: */*
65 Proxy-Connection: Keep-Alive
66
67 </protocol>
68
69 </verify>