Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test174
blobf4809099ef1b3680bd89f4fd9aacb82dafa546c4
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 200 beng swsclose
6 Server: Microsoft-IIS/6.0
7 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth
8 Content-Type: text/html; charset=iso-8859-1
9 Content-Length: 26
11 This is not the real page
12 </data>
13 </reply>
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>
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
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
37 Host: %HOSTIP:%HTTPPORT
38 Accept: */*
39 Content-Length: 11
40 Content-Type: application/x-www-form-urlencoded
42 junkelijunk
43 </protocol>
44 </verify>
45 </testcase>