| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
HTTP/1.1 302 *MOVED* swsclose swsbounce |
| 5 |
Server: Microsoft-IIS/6.0 |
| 6 |
Location: /mooooo/177 |
| 7 |
Content-Type: text/html; charset=iso-8859-1 |
| 8 |
|
| 9 |
</data> |
| 10 |
</reply> |
| 11 |
|
| 12 |
# Client-side |
| 13 |
<client> |
| 14 |
# |
| 15 |
<server> |
| 16 |
http |
| 17 |
</server> |
| 18 |
<name> |
| 19 |
HTTP POST --digest to server doing a 302-location response |
| 20 |
</name> |
| 21 |
<command> |
| 22 |
http://%HOSTIP:%HTTPPORT/177 -u auser:apasswd --digest -d "junkelijunk" |
| 23 |
</command> |
| 24 |
</client> |
| 25 |
|
| 26 |
# Verify data after the test has been "shot" |
| 27 |
<verify> |
| 28 |
<strip> |
| 29 |
^User-Agent:.* |
| 30 |
</strip> |
| 31 |
<protocol> |
| 32 |
POST /177 HTTP/1.1 |
| 33 |
User-Agent: curl/7.12.1-CVS (i686-pc-linux-gnu) libcurl/7.12.1-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.6 |
| 34 |
Host: 127.0.0.1:%HTTPPORT |
| 35 |
Accept: */* |
| 36 |
Content-Length: 0 |
| 37 |
Content-Type: application/x-www-form-urlencoded |
| 38 |
|
| 39 |
</protocol> |
| 40 |
</verify> |