Initial commit of visual studio 9 git build superproject.
[git-build-vc9.git] / curl / tests / data / test175
blob2ee78d50843a4c352ca2e40dcd39ac4b24eb3965
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 HTTP Digest auth
7 </keywords>
8 </info>
10 # Server-side
11 <reply>
12 <data>
13 HTTP/1.1 200 beng swsclose swsbounce\r
14 Server: Microsoft-IIS/6.0\r
15 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth\r
16 Content-Type: text/html; charset=iso-8859-1\r
18 This is not the real page
19 </data>
21 <data1>
22 HTTP/1.1 200 moo swsclose\r
23 Server: Microsoft-IIS/6.0\r
24 Content-Type: text/html; charset=iso-8859-1\r
25 Content-Length: 16
27 content for you
28 </data1>
30 <datacheck>
31 HTTP/1.1 200 beng swsclose swsbounce\r
32 Server: Microsoft-IIS/6.0\r
33 Authentication-Info: Passport1.4 tname=MSPAuth,tname=MSPProf,tname=MSPConsent,tname=MSPSecAuth\r
34 Content-Type: text/html; charset=iso-8859-1\r
36 HTTP/1.1 200 moo swsclose\r
37 Server: Microsoft-IIS/6.0\r
38 Content-Type: text/html; charset=iso-8859-1\r
39 Content-Length: 16
41 content for you
42 </datacheck>
44 </reply>
46 # Client-side
47 <client>
48
49 <server>
50 http
51 </server>
52 <features>
53 crypto
54 </features>
55  <name>
56 HTTP POST --digest to server not requiring any auth at all
57  </name>
58  <command>
59 http://%HOSTIP:%HTTPPORT/175 -u auser:apasswd --digest -d "junkelijunk"
60 </command>
61 </client>
63 # Verify data after the test has been "shot"
64 <verify>
65 <strip>
66 ^User-Agent:.*
67 </strip>
68 <protocol nonewline="yes">
69 POST /175 HTTP/1.1\r
70 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
71 Host: %HOSTIP:%HTTPPORT\r
72 Accept: */*\r
73 Content-Length: 0\r
74 Content-Type: application/x-www-form-urlencoded\r
76 POST /175 HTTP/1.1\r
77 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
78 Host: %HOSTIP:%HTTPPORT\r
79 Accept: */*\r
80 Content-Length: 11\r
81 Content-Type: application/x-www-form-urlencoded\r
83 junkelijunk
84 </protocol>
85 </verify>
86 </testcase>