| 1 |
# |
| 2 |
# Server-side |
| 3 |
<reply> |
| 4 |
<data> |
| 5 |
HTTP/1.1 302 OK |
| 6 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 7 |
Server: test-server/fake swsclose |
| 8 |
Content-Type: text/html |
| 9 |
Funny-head: yesyes |
| 10 |
Location: http://goto.second.host.now/2340002 |
| 11 |
Content-Length: 8 |
| 12 |
Connection: close |
| 13 |
|
| 14 |
contents |
| 15 |
</data> |
| 16 |
<data2> |
| 17 |
HTTP/1.1 200 OK |
| 18 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 19 |
Server: test-server/fake swsclose |
| 20 |
Content-Type: text/html |
| 21 |
Funny-head: yesyes |
| 22 |
|
| 23 |
contents |
| 24 |
</data2> |
| 25 |
|
| 26 |
<datacheck> |
| 27 |
HTTP/1.1 302 OK |
| 28 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 29 |
Server: test-server/fake swsclose |
| 30 |
Content-Type: text/html |
| 31 |
Funny-head: yesyes |
| 32 |
Location: http://goto.second.host.now/2340002 |
| 33 |
Content-Length: 8 |
| 34 |
Connection: close |
| 35 |
|
| 36 |
HTTP/1.1 200 OK |
| 37 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 38 |
Server: test-server/fake swsclose |
| 39 |
Content-Type: text/html |
| 40 |
Funny-head: yesyes |
| 41 |
|
| 42 |
contents |
| 43 |
</datacheck> |
| 44 |
</reply> |
| 45 |
|
| 46 |
# |
| 47 |
# Client-side |
| 48 |
<client> |
| 49 |
<server> |
| 50 |
http |
| 51 |
</server> |
| 52 |
<name> |
| 53 |
HTTP, proxy, site+proxy auth and Location: to new host using location-trusted |
| 54 |
</name> |
| 55 |
<command> |
| 56 |
http://first.host.it.is/we/want/that/page/234 -x %HOSTIP:%HTTPPORT --user iam:myself --proxy-user testing:this --location-trusted |
| 57 |
</command> |
| 58 |
</client> |
| 59 |
|
| 60 |
# |
| 61 |
# Verify data after the test has been "shot" |
| 62 |
<verify> |
| 63 |
<strip> |
| 64 |
^User-Agent:.* |
| 65 |
</strip> |
| 66 |
<protocol> |
| 67 |
GET http://first.host.it.is/we/want/that/page/234 HTTP/1.1 |
| 68 |
Proxy-Authorization: Basic dGVzdGluZzp0aGlz |
| 69 |
Authorization: Basic aWFtOm15c2VsZg== |
| 70 |
Host: first.host.it.is |
| 71 |
Pragma: no-cache |
| 72 |
Accept: */* |
| 73 |
Proxy-Connection: Keep-Alive |
| 74 |
|
| 75 |
GET http://goto.second.host.now/2340002 HTTP/1.1 |
| 76 |
Proxy-Authorization: Basic dGVzdGluZzp0aGlz |
| 77 |
Authorization: Basic aWFtOm15c2VsZg== |
| 78 |
Host: goto.second.host.now |
| 79 |
Pragma: no-cache |
| 80 |
Accept: */* |
| 81 |
Proxy-Connection: Keep-Alive |
| 82 |
|
| 83 |
</protocol> |
| 84 |
</verify> |