xref: /curl/tests/data/test2076 (revision e2b4df7b)
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP Digest auth
7</keywords>
8</info>
9# Server-side
10<reply>
11<data>
12HTTP/1.1 401 Authorization Required swsclose
13WWW-Authenticate: Digest realm="testrealm", nonce="1"
14Content-Length: 26
15
16This is not the real page
17</data>
18
19# This is supposed to be returned when the server gets a
20# Authorization: Digest line passed-in from the client
21<data1000>
22HTTP/1.1 200 OK swsclose
23Content-Length: 23
24
25This IS the real page!
26</data1000>
27
28<datacheck>
29HTTP/1.1 401 Authorization Required swsclose
30WWW-Authenticate: Digest realm="testrealm", nonce="1"
31Content-Length: 26
32
33HTTP/1.1 200 OK swsclose
34Content-Length: 23
35
36This IS the real page!
37</datacheck>
38
39</reply>
40
41# Client-side
42<client>
43<server>
44http
45</server>
46<features>
47!SSPI
48crypto
49</features>
50<name>
51HTTP with digest auth and URI contains query
52</name>
53<command>
54"http://%HOSTIP:%HTTPPORT/%TESTNUMBER?query" -u testuser:testpass --digest
55</command>
56</client>
57
58# Verify data after the test has been "shot"
59<verify>
60<protocol>
61GET /%TESTNUMBER?query HTTP/1.1
62Host: %HOSTIP:%HTTPPORT
63User-Agent: curl/%VERSION
64Accept: */*
65
66GET /%TESTNUMBER?query HTTP/1.1
67Host: %HOSTIP:%HTTPPORT
68Authorization: Digest username="testuser", realm="testrealm", nonce="1", uri="/%TESTNUMBER?query", response="5758bd3bbde7f33236e6ccd278eb59af"
69User-Agent: curl/%VERSION
70Accept: */*
71
72</protocol>
73</verify>
74</testcase>
75