2007-01-22 21:25:56 -05:00
|
|
|
<testcase>
|
2012-11-19 11:54:52 -05:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
--anyauth
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-04-06 11:14:10 -04:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 No Authorization Required swsclose
|
|
|
|
Server: Apache/1.3.27 (Darwin) PHP/4.1.2
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
|
|
|
Connection: close
|
|
|
|
|
|
|
|
GET received and served just fine. Thank you very much
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP GET with --anyauth (when the server requires none)
|
|
|
|
</name>
|
|
|
|
<command>
|
2004-09-08 04:08:38 -04:00
|
|
|
http://%HOSTIP:%HTTPPORT/157 -u testuser:testpass --anyauth
|
2004-04-06 11:14:10 -04:00
|
|
|
</command>
|
|
|
|
</client>
|
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<strip>
|
|
|
|
^User-Agent:.*
|
|
|
|
</strip>
|
|
|
|
<protocol>
|
|
|
|
GET /157 HTTP/1.1
|
2007-09-14 15:32:31 -04:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2004-04-06 11:14:10 -04:00
|
|
|
Accept: */*
|
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-22 21:25:56 -05:00
|
|
|
</testcase>
|