Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Utilities / cmcurl-7.19.0 / tests / data / test245
blob102d8c94327203e2bcf6f77b3b82fca6870e3c57
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 401 authentication please swsbounce
14 Server: Microsoft-IIS/6.0
15 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
16 Content-Type: text/html; charset=iso-8859-1
17 Content-Length: 0
19 </data>
20 <data1000>
21 HTTP/1.1 200 A OK
22 Server: Microsoft-IIS/6.0
23 Content-Type: text/html; charset=iso-8859-1
24 Content-Length: 3
27 </data1000>
29 <datacheck>
30 HTTP/1.1 401 authentication please swsbounce
31 Server: Microsoft-IIS/6.0
32 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
33 Content-Type: text/html; charset=iso-8859-1
34 Content-Length: 0
36 HTTP/1.1 200 A OK
37 Server: Microsoft-IIS/6.0
38 Content-Type: text/html; charset=iso-8859-1
39 Content-Length: 3
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
57  </name>
58  <command>
59 http://%HOSTIP:%HTTPPORT/245 -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 /245 HTTP/1.1
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
71 Host: %HOSTIP:%HTTPPORT
72 Accept: */*
73 Content-Length: 0
74 Content-Type: application/x-www-form-urlencoded
76 POST /245 HTTP/1.1
77 Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/245", response="379a439b1737ba257c1d2f103914b18b"
78 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
79 Host: %HOSTIP:%HTTPPORT
80 Accept: */*
81 Content-Length: 11
82 Content-Type: application/x-www-form-urlencoded
84 junkelijunk
85 </protocol>
86 </verify>
87 </testcase>