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