Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test246
blob57f47e4a4186e36f056068509ae007ffa94c822f
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 100 Continue
14 Server: Microsoft-IIS/5.0
15 Date: Sun, 03 Apr 2005 14:57:45 GMT
16 X-Powered-By: ASP.NET
18 HTTP/1.1 401 authentication please swsbounce
19 Server: Microsoft-IIS/6.0
20 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
21 Content-Type: text/html; charset=iso-8859-1
22 Content-Length: 0
24 </data>
25 <data1000>
26 HTTP/1.1 200 A OK
27 Server: Microsoft-IIS/6.0
28 Content-Type: text/html; charset=iso-8859-1
29 Content-Length: 3
32 </data1000>
34 <datacheck>
35 HTTP/1.1 100 Continue
36 Server: Microsoft-IIS/5.0
37 Date: Sun, 03 Apr 2005 14:57:45 GMT
38 X-Powered-By: ASP.NET
40 HTTP/1.1 401 authentication please swsbounce
41 Server: Microsoft-IIS/6.0
42 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
43 Content-Type: text/html; charset=iso-8859-1
44 Content-Length: 0
46 HTTP/1.1 200 A OK
47 Server: Microsoft-IIS/6.0
48 Content-Type: text/html; charset=iso-8859-1
49 Content-Length: 3
52 </datacheck>
54 </reply>
56 # Client-side
57 <client>
58
59 <server>
60 http
61 </server>
62 <features>
63 crypto
64 </features>
65  <name>
66 HTTP POST --digest with server doing a 100 before 401 response
67  </name>
68  <command>
69 http://%HOSTIP:%HTTPPORT/246 -u auser:apasswd --digest -d "junkelijunk"
70 </command>
71 </client>
73 # Verify data after the test has been "shot"
74 <verify>
75 <strip>
76 ^User-Agent:.*
77 </strip>
78 <protocol nonewline="yes">
79 POST /246 HTTP/1.1
80 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
81 Host: %HOSTIP:%HTTPPORT
82 Accept: */*
83 Content-Length: 0
84 Content-Type: application/x-www-form-urlencoded
86 POST /246 HTTP/1.1
87 Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/246", response="761e6fc9a760c39d587092e8d840e740"
88 User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
89 Host: %HOSTIP:%HTTPPORT
90 Accept: */*
91 Content-Length: 11
92 Content-Type: application/x-www-form-urlencoded
94 junkelijunk
95 </protocol>
96 </verify>
97 </testcase>