• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/2076?query" -u testuser:testpass --digest
55</command>
56</client>
57
58# Verify data after the test has been "shot"
59<verify>
60<strip>
61^User-Agent:.*
62</strip>
63<protocol>
64GET /2076?query HTTP/1.1
65Host: %HOSTIP:%HTTPPORT
66Accept: */*
67
68GET /2076?query HTTP/1.1
69Host: %HOSTIP:%HTTPPORT
70Authorization: Digest username="testuser", realm="testrealm", nonce="1", uri="/2076?query", response="5758bd3bbde7f33236e6ccd278eb59af"
71Accept: */*
72
73</protocol>
74</verify>
75</testcase>
76