1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP POST
6</keywords>
7</info>
8
9# Server-side
10<reply>
11<data>
12HTTP/1.1 200 beng swsclose
13Server: Microsoft-IIS/6.0
14Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
15Content-Type: text/html; charset=iso-8859-1
16Content-Length: 26
17
18This is not the real page
19</data>
20</reply>
21
22# Client-side
23<client>
24# 
25<server>
26http
27</server>
28 <name>
29HTTP POST --anyauth to server not requiring any auth at all
30 </name>
31 <command>
32http://%HOSTIP:%HTTPPORT/174 -u testuser:testpass --anyauth -d "junkelijunk"
33</command>
34</client>
35
36# Verify data after the test has been "shot"
37<verify>
38<strip>
39^User-Agent:.*
40</strip>
41<protocol nonewline="yes">
42POST /174 HTTP/1.1
43User-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
44Host: %HOSTIP:%HTTPPORT
45Accept: */*
46Content-Length: 11
47Content-Type: application/x-www-form-urlencoded
48
49junkelijunk
50</protocol>
51</verify>
52</testcase>
53