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