Debian Codegraph @

curl/tests/data/test245

raw
1 # Server-side
2 <reply>
3 <data>
4 HTTP/1.1 401 authentication please swsbounce
5 Server: Microsoft-IIS/6.0
6 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
7 Content-Type: text/html; charset=iso-8859-1
8 Content-Length: 0
9
10 </data>
11 <data1000>
12 HTTP/1.1 200 A OK
13 Server: Microsoft-IIS/6.0
14 Content-Type: text/html; charset=iso-8859-1
15 Content-Length: 3
16
17 ok
18 </data1000>
19
20 <datacheck>
21 HTTP/1.1 401 authentication please swsbounce
22 Server: Microsoft-IIS/6.0
23 WWW-Authenticate: Digest realm="testrealm", nonce="1053604144"
24 Content-Type: text/html; charset=iso-8859-1
25 Content-Length: 0
26
27 HTTP/1.1 200 A OK
28 Server: Microsoft-IIS/6.0
29 Content-Type: text/html; charset=iso-8859-1
30 Content-Length: 3
31
32 ok
33 </datacheck>
34
35 </reply>
36
37 # Client-side
38 <client>
39 #
40 <server>
41 http
42 </server>
43 <name>
44 HTTP POST --digest
45 </name>
46 <command>
47 http://%HOSTIP:%HTTPPORT/245 -u auser:apasswd --digest -d "junkelijunk"
48 </command>
49 </client>
50
51 # Verify data after the test has been "shot"
52 <verify>
53 <strip>
54 ^User-Agent:.*
55 </strip>
56 <protocol nonewline=yes>
57 POST /245 HTTP/1.1
58 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
59 Host: 127.0.0.1:%HTTPPORT
60 Accept: */*
61 Content-Length: 0
62 Content-Type: application/x-www-form-urlencoded
63
64 POST /245 HTTP/1.1
65 Authorization: Digest username="auser", realm="testrealm", nonce="1053604144", uri="/245", response="379a439b1737ba257c1d2f103914b18b"
66 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
67 Host: 127.0.0.1:8990
68 Accept: */*
69 Content-Length: 11
70 Content-Type: application/x-www-form-urlencoded
71
72 junkelijunk
73 </protocol>
74 </verify>