2007-01-23 10:25:56 +08:00
|
|
|
<testcase>
|
2012-11-13 21:02:42 +08:00
|
|
|
<info>
|
|
|
|
<keywords>
|
|
|
|
HTTP
|
|
|
|
HTTP POST
|
|
|
|
</keywords>
|
|
|
|
</info>
|
|
|
|
|
2004-06-14 17:16:39 +08:00
|
|
|
# Server-side
|
|
|
|
<reply>
|
|
|
|
<data>
|
2004-11-25 00:11:35 +08:00
|
|
|
HTTP/1.1 200 beng swsclose
|
2004-06-14 17:16:39 +08:00
|
|
|
Server: Microsoft-IIS/6.0
|
|
|
|
Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
|
|
|
|
Content-Type: text/html; charset=iso-8859-1
|
2012-11-15 02:49:12 +08:00
|
|
|
Content-Length: 26
|
2004-06-14 17:16:39 +08:00
|
|
|
|
|
|
|
This is not the real page
|
|
|
|
</data>
|
|
|
|
</reply>
|
|
|
|
|
|
|
|
# Client-side
|
|
|
|
<client>
|
|
|
|
#
|
|
|
|
<server>
|
|
|
|
http
|
|
|
|
</server>
|
|
|
|
<name>
|
|
|
|
HTTP POST --anyauth to server not requiring any auth at all
|
|
|
|
</name>
|
|
|
|
<command>
|
2021-03-13 00:38:26 +08:00
|
|
|
http://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth -d "junkelijunk"
|
2004-06-14 17:16:39 +08:00
|
|
|
</command>
|
2005-01-26 05:45:03 +08:00
|
|
|
</client>
|
2004-06-14 17:16:39 +08:00
|
|
|
|
|
|
|
# Verify data after the test has been "shot"
|
|
|
|
<verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
<protocol nonewline="yes">
|
2021-03-13 00:38:26 +08:00
|
|
|
POST /%TESTNUMBER HTTP/1.1
|
2007-09-15 03:32:31 +08:00
|
|
|
Host: %HOSTIP:%HTTPPORT
|
2020-10-02 19:45:24 +08:00
|
|
|
User-Agent: curl/%VERSION
|
2004-06-14 17:16:39 +08:00
|
|
|
Accept: */*
|
|
|
|
Content-Length: 11
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
junkelijunk
|
|
|
|
</protocol>
|
|
|
|
</verify>
|
2007-01-23 10:25:56 +08:00
|
|
|
</testcase>
|