Convert (most of) the test data files into genuine XML. A handful still
[platform/upstream/curl.git] / tests / data / test246
1 <testcase>
2 # Server-side
3 <reply>
4 <data>
5 HTTP/1.1 100 Continue\r
6 Server: Microsoft-IIS/5.0\r
7 Date: Sun, 03 Apr 2005 14:57:45 GMT\r
8 X-Powered-By: ASP.NET\r
9 \r
10 HTTP/1.1 401 authentication please swsbounce\r
11 Server: Microsoft-IIS/6.0\r
12 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"\r
13 Content-Type: text/html; charset=iso-8859-1\r
14 Content-Length: 0\r
15 \r
16 </data>
17 <data1000>
18 HTTP/1.1 200 A OK\r
19 Server: Microsoft-IIS/6.0\r
20 Content-Type: text/html; charset=iso-8859-1\r
21 Content-Length: 3\r
22 \r
23 ok
24 </data1000>
25
26 <datacheck>
27 HTTP/1.1 100 Continue\r
28 Server: Microsoft-IIS/5.0\r
29 Date: Sun, 03 Apr 2005 14:57:45 GMT\r
30 X-Powered-By: ASP.NET\r
31 \r
32 HTTP/1.1 401 authentication please swsbounce\r
33 Server: Microsoft-IIS/6.0\r
34 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"\r
35 Content-Type: text/html; charset=iso-8859-1\r
36 Content-Length: 0\r
37 \r
38 HTTP/1.1 200 A OK\r
39 Server: Microsoft-IIS/6.0\r
40 Content-Type: text/html; charset=iso-8859-1\r
41 Content-Length: 3\r
42 \r
43 ok
44 </datacheck>
45
46 </reply>
47
48 # Client-side
49 <client>
50
51 <server>
52 http
53 </server>
54  <name>
55 HTTP POST --digest with server doing a 100 before 401 response
56  </name>
57  <command>
58 http://%HOSTIP:%HTTPPORT/246 -u auser:apasswd --digest -d "junkelijunk"
59 </command>
60 </client>
61
62 # Verify data after the test has been "shot"
63 <verify>
64 <strip>
65 ^User-Agent:.*
66 </strip>
67 <protocol nonewline="yes">
68 POST /246 HTTP/1.1\r
69 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
70 Host: 127.0.0.1:%HTTPPORT\r
71 Accept: */*\r
72 Content-Length: 0\r
73 Content-Type: application/x-www-form-urlencoded\r
74 \r
75 POST /246 HTTP/1.1\r
76 Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/246", response="761e6fc9a760c39d587092e8d840e740"\r
77 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\r
78 Host: 127.0.0.1:8990\r
79 Accept: */*\r
80 Content-Length: 11\r
81 Content-Type: application/x-www-form-urlencoded\r
82 \r
83 junkelijunk
84 </protocol>
85 </verify>
86 </testcase>