Revert "Update to 7.40.1"
[platform/upstream/curl.git] / tests / data / test565
1 <testcase>
2 <info>
3 <keywords>
4 HTTP
5 HTTP POST
6 HTTP Digest auth
7 </keywords>
8 </info>
9 #
10 # Server-side
11 <reply>
12 <data>
13 HTTP/1.1 100 Continue\r
14 Server: Microsoft-IIS/5.0\r
15 Date: Sun, 03 Apr 2005 14:57:45 GMT\r
16 X-Powered-By: ASP.NET\r
17 \r
18 HTTP/1.1 401 authentication please swsbounce\r
19 Server: Microsoft-IIS/6.0\r
20 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"\r
21 Content-Type: text/html; charset=iso-8859-1\r
22 Content-Length: 0\r
23 \r
24 </data>
25 <data1>
26 HTTP/1.1 200 A OK\r
27 Server: Microsoft-IIS/6.0\r
28 Content-Type: text/html; charset=iso-8859-1\r
29 Content-Length: 3\r
30 \r
31 ok
32 </data1>
33 <datacheck>
34 HTTP/1.1 100 Continue\r
35 Server: Microsoft-IIS/5.0\r
36 Date: Sun, 03 Apr 2005 14:57:45 GMT\r
37 X-Powered-By: ASP.NET\r
38 \r
39 HTTP/1.1 401 authentication please swsbounce\r
40 Server: Microsoft-IIS/6.0\r
41 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"\r
42 Content-Type: text/html; charset=iso-8859-1\r
43 Content-Length: 0\r
44 \r
45 HTTP/1.1 200 A OK\r
46 Server: Microsoft-IIS/6.0\r
47 Content-Type: text/html; charset=iso-8859-1\r
48 Content-Length: 3\r
49 \r
50 ok
51 </datacheck>
52 </reply>
53
54 # Client-side
55 <client>
56 <server>
57 http
58 </server>
59 <features>
60 crypto
61 </features>
62 # tool is what to use instead of 'curl'
63 <tool>
64 lib565
65 </tool>
66
67  <name>
68 send HTTP POST using read callback, chunked transfer-encoding and Digest
69  </name>
70  <command>
71 http://%HOSTIP:%HTTPPORT/565
72 </command>
73 </client>
74
75 #
76 # Verify data after the test has been "shot"
77 <verify>
78 <protocol>
79 POST /565 HTTP/1.1\r
80 Host: %HOSTIP:%HTTPPORT\r
81 Accept: */*\r
82 Transfer-Encoding: chunked\r
83 Content-Type: application/x-www-form-urlencoded\r
84 \r
85 0\r
86 \r
87 POST /565 HTTP/1.1\r
88 Authorization: Digest username="foo", realm="testrealm", nonce="1053604144", uri="/565", response="877424f750af047634dbd94f9933217b"\r
89 Host: %HOSTIP:%HTTPPORT\r
90 Accept: */*\r
91 Transfer-Encoding: chunked\r
92 Content-Type: application/x-www-form-urlencoded\r
93 Expect: 100-continue\r
94 \r
95 3\r
96 one\r
97 3\r
98 two\r
99 5\r
100 three\r
101 1d\r
102 and a final longer crap: four\r
103 0\r
104 \r
105 </protocol>
106 </verify>
107 </testcase>