2007-01-23 02:25:56 +00:00
|
|
|
<testcase>
|
2005-04-15 23:48:31 +00:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP GET
|
|
|
|
HTTP Basic auth
|
|
|
|
</keywords>
|
|
|
|
</info>
|
2001-05-23 15:00:48 +00:00
|
|
|
#
|
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
|
|
|
HTTP/1.1 200 OK
|
2020-02-28 15:00:03 +01:00
|
|
|
Date: Tue, 09 Nov 2010 14:49:00 GMT
|
2003-07-19 23:57:08 +00:00
|
|
|
Server: test-server/fake swsclose
|
2001-05-23 15:00:48 +00:00
|
|
|
Content-Type: text/html
|
|
|
|
Funny-head: yesyes
|
|
|
|
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
#
|
|
|
|
# Client-side
|
|
|
|
<client>
|
2003-04-30 20:25:39 +00:00
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
2001-05-23 15:00:48 +00:00
|
|
|
<name>
|
|
|
|
HTTP GET with user and password
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-12 17:38:26 +01:00
|
|
|
-u fake:user http://%HOSTIP:%HTTPPORT/%TESTNUMBER
|
2001-05-23 15:00:48 +00:00
|
|
|
</command>
|
2005-01-25 21:45:03 +00:00
|
|
|
</client>
|
2001-05-23 15:00:48 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
|
|
|
<protocol>
|
2021-03-12 17:38:26 +01:00
|
|
|
GET /%TESTNUMBER HTTP/1.1
|
2007-09-14 19:32:31 +00:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2015-03-12 00:50:46 +01:00
|
|
|
Authorization: Basic ZmFrZTp1c2Vy
|
2020-10-02 13:45:24 +02:00
|
|
|
User-Agent: curl/%VERSION
|
2004-02-09 12:46:41 +00:00
|
|
|
Accept: */*
|
2001-05-23 15:00:48 +00:00
|
|
|
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 02:25:56 +00:00
|
|
|
</testcase>
|