| 1 |
# Server-side |
| 2 |
<reply> |
| 3 |
<data> |
| 4 |
HTTP/1.1 200 beng swsclose swsbounce |
| 5 |
Server: Microsoft-IIS/6.0 |
| 6 |
Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth |
| 7 |
Content-Type: text/html; charset=iso-8859-1 |
| 8 |
|
| 9 |
This is not the real page |
| 10 |
</data> |
| 11 |
|
| 12 |
<data1> |
| 13 |
HTTP/1.1 200 moo swsclose |
| 14 |
Server: Microsoft-IIS/6.0 |
| 15 |
Content-Type: text/html; charset=iso-8859-1 |
| 16 |
|
| 17 |
content for you |
| 18 |
</data1> |
| 19 |
|
| 20 |
<datacheck> |
| 21 |
HTTP/1.1 200 beng swsclose swsbounce |
| 22 |
Server: Microsoft-IIS/6.0 |
| 23 |
Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth |
| 24 |
Content-Type: text/html; charset=iso-8859-1 |
| 25 |
|
| 26 |
HTTP/1.1 200 moo swsclose |
| 27 |
Server: Microsoft-IIS/6.0 |
| 28 |
Content-Type: text/html; charset=iso-8859-1 |
| 29 |
|
| 30 |
content for you |
| 31 |
</datacheck> |
| 32 |
|
| 33 |
</reply> |
| 34 |
|
| 35 |
# Client-side |
| 36 |
<client> |
| 37 |
# |
| 38 |
<server> |
| 39 |
http |
| 40 |
</server> |
| 41 |
<name> |
| 42 |
HTTP POST --digest to server not requiring any auth at all |
| 43 |
</name> |
| 44 |
<command> |
| 45 |
http://%HOSTIP:%HTTPPORT/175 -u auser:apasswd --digest -d "junkelijunk" |
| 46 |
</command> |
| 47 |
</client> |
| 48 |
|
| 49 |
# Verify data after the test has been "shot" |
| 50 |
<verify> |
| 51 |
<strip> |
| 52 |
^User-Agent:.* |
| 53 |
</strip> |
| 54 |
<protocol nonewline=yes> |
| 55 |
POST /175 HTTP/1.1 |
| 56 |
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 |
| 57 |
Host: 127.0.0.1:%HTTPPORT |
| 58 |
Accept: */* |
| 59 |
Content-Length: 0 |
| 60 |
Content-Type: application/x-www-form-urlencoded |
| 61 |
|
| 62 |
POST /175 HTTP/1.1 |
| 63 |
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 |
| 64 |
Host: 127.0.0.1:%HTTPPORT |
| 65 |
Accept: */* |
| 66 |
Content-Length: 11 |
| 67 |
Content-Type: application/x-www-form-urlencoded |
| 68 |
|
| 69 |
junkelijunk |
| 70 |
</protocol> |
| 71 |
</verify> |