| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP GET |
| 5 |
</keywords> |
| 6 |
</info> |
| 7 |
# Server-side |
| 8 |
<reply> |
| 9 |
<data> |
| 10 |
HTTP/1.1 301 This is a weirdo text message swsclose |
| 11 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 12 |
Server: test-server/fake |
| 13 |
Location: /online/1,1795,Welcome,00.html/280002.txt?logout=TRUE |
| 14 |
Connection: close |
| 15 |
|
| 16 |
This server reply is for testing a simple Location: following |
| 17 |
|
| 18 |
</data> |
| 19 |
<data2> |
| 20 |
HTTP/1.1 200 Followed here fine swsclose |
| 21 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 22 |
Server: test-server/fake |
| 23 |
|
| 24 |
If this is received, the location following worked |
| 25 |
|
| 26 |
</data2> |
| 27 |
<datacheck> |
| 28 |
HTTP/1.1 301 This is a weirdo text message swsclose |
| 29 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 30 |
Server: test-server/fake |
| 31 |
Location: /online/1,1795,Welcome,00.html/280002.txt?logout=TRUE |
| 32 |
Connection: close |
| 33 |
|
| 34 |
HTTP/1.1 200 Followed here fine swsclose |
| 35 |
Date: Thu, 09 Nov 2010 14:49:00 GMT |
| 36 |
Server: test-server/fake |
| 37 |
|
| 38 |
If this is received, the location following worked |
| 39 |
|
| 40 |
</datacheck> |
| 41 |
</reply> |
| 42 |
|
| 43 |
# Client-side |
| 44 |
<client> |
| 45 |
<server> |
| 46 |
http |
| 47 |
</server> |
| 48 |
<name> |
| 49 |
HTTP Location: following with extra spaces in header |
| 50 |
</name> |
| 51 |
<command> |
| 52 |
http://%HOSTIP:%HTTPPORT/want/28 -L |
| 53 |
</command> |
| 54 |
</client> |
| 55 |
|
| 56 |
# Verify data after the test has been "shot" |
| 57 |
<verify> |
| 58 |
<strip> |
| 59 |
^User-Agent:.* |
| 60 |
</strip> |
| 61 |
<protocol> |
| 62 |
GET /want/28 HTTP/1.1 |
| 63 |
Host: 127.0.0.1:%HTTPPORT |
| 64 |
Accept: */* |
| 65 |
|
| 66 |
GET /online/1,1795,Welcome,00.html/280002.txt?logout=TRUE HTTP/1.1 |
| 67 |
Host: 127.0.0.1:%HTTPPORT |
| 68 |
Accept: */* |
| 69 |
|
| 70 |
</protocol> |
| 71 |
</verify> |