| 1 |
<info> |
| 2 |
<keywords> |
| 3 |
HTTP |
| 4 |
HTTP GET |
| 5 |
followlocation |
| 6 |
</keywords> |
| 7 |
</info> |
| 8 |
# |
| 9 |
# Server-side |
| 10 |
<reply> |
| 11 |
<data> |
| 12 |
HTTP/1.1 302 OK swsclose |
| 13 |
Location: ../../moo.html/500002 |
| 14 |
Date: Thu, 09 Nov 2010 14:50:00 GMT |
| 15 |
Connection: close |
| 16 |
|
| 17 |
</data> |
| 18 |
<data2> |
| 19 |
HTTP/1.1 200 OK swsclose |
| 20 |
Location: this should be ignored |
| 21 |
Date: Thu, 09 Nov 2010 14:50:00 GMT |
| 22 |
Connection: close |
| 23 |
|
| 24 |
body |
| 25 |
</data2> |
| 26 |
<datacheck> |
| 27 |
HTTP/1.1 302 OK swsclose |
| 28 |
Location: ../../moo.html/500002 |
| 29 |
Date: Thu, 09 Nov 2010 14:50:00 GMT |
| 30 |
Connection: close |
| 31 |
|
| 32 |
HTTP/1.1 200 OK swsclose |
| 33 |
Location: this should be ignored |
| 34 |
Date: Thu, 09 Nov 2010 14:50:00 GMT |
| 35 |
Connection: close |
| 36 |
|
| 37 |
body |
| 38 |
</datacheck> |
| 39 |
</reply> |
| 40 |
|
| 41 |
# |
| 42 |
# Client-side |
| 43 |
<client> |
| 44 |
<server> |
| 45 |
http |
| 46 |
</server> |
| 47 |
<name> |
| 48 |
HTTP follow redirect with ../../ |
| 49 |
</name> |
| 50 |
<command> |
| 51 |
http://%HOSTIP:%HTTPPORT/we/are/all/twits/50 -L |
| 52 |
</command> |
| 53 |
</client> |
| 54 |
|
| 55 |
# |
| 56 |
# Verify data after the test has been "shot" |
| 57 |
<verify> |
| 58 |
<strip> |
| 59 |
^User-Agent:.* |
| 60 |
</strip> |
| 61 |
<protocol> |
| 62 |
GET /we/are/all/twits/50 HTTP/1.1 |
| 63 |
Host: 127.0.0.1:%HTTPPORT |
| 64 |
Accept: */* |
| 65 |
|
| 66 |
GET /we/are/moo.html/500002 HTTP/1.1 |
| 67 |
User-Agent: curl/7.10 (i686-pc-linux-gnu) libcurl/7.10 OpenSSL/0.9.6c ipv6 zlib/1.1.3 |
| 68 |
Host: 127.0.0.1:%HTTPPORT |
| 69 |
Accept: */* |
| 70 |
|
| 71 |
</protocol> |
| 72 |
</verify> |