• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<testcase>
2<info>
3<keywords>
4HTTP
5HTTP GET
6HTTP proxy
7HTTP proxy Basic auth
8HTTP Digest auth
9</keywords>
10</info>
11
12# Server-side
13<reply>
14<data>
15HTTP/1.1 401 Authorization Required swsclose
16WWW-Authenticate: Digest realm="weirdorealm", nonce="12345"
17
18</data>
19
20<data1000>
21HTTP/1.1 200 OK swsclose
22Server: no
23Content-Length: 15
24
25Nice auth sir!
26</data1000>
27
28<datacheck>
29HTTP/1.1 401 Authorization Required swsclose
30WWW-Authenticate: Digest realm="weirdorealm", nonce="12345"
31
32HTTP/1.1 200 OK swsclose
33Server: no
34Content-Length: 15
35
36Nice auth sir!
37</datacheck>
38</reply>
39
40# Client-side
41<client>
42<server>
43http
44</server>
45<features>
46!SSPI
47crypto
48proxy
49</features>
50 <name>
51HTTP with proxy-requiring-Basic to site-requiring-Digest
52 </name>
53 <command>
54http://data.from.server.requiring.digest.hohoho.com/167 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --digest --user digest:alot
55</command>
56</client>
57
58# Verify data after the test has been "shot"
59<verify>
60<strip>
61^User-Agent: curl/.*
62</strip>
63<protocol>
64GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1
65Host: data.from.server.requiring.digest.hohoho.com
66Proxy-Authorization: Basic Zm9vOmJhcg==
67User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3
68Accept: */*
69Proxy-Connection: Keep-Alive
70
71GET http://data.from.server.requiring.digest.hohoho.com/167 HTTP/1.1
72Host: data.from.server.requiring.digest.hohoho.com
73Proxy-Authorization: Basic Zm9vOmJhcg==
74Authorization: Digest username="digest", realm="weirdorealm", nonce="12345", uri="/167", response="13c7c02a252cbe1c46d8669898a3be26"
75User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b zlib/1.1.4 c-ares/1.2.0 libidn/0.4.3
76Accept: */*
77Proxy-Connection: Keep-Alive
78
79</protocol>
80</verify>
81</testcase>
82