15 # this is returned first since we get no proxy-auth
17 HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
\r
18 Proxy-Authenticate: NTLM
\r
20 And you should ignore this data.
23 # then this is returned since we get no server-auth
25 HTTP/1.1 200 Authorizated fine
\r
28 Welcome to the end station
32 HTTP/1.1 407 NTLM type-1 received sending back type-2
\r
33 Server: Microsoft-IIS/5.0
\r
35 Content-Type: text/html; charset=iso-8859-1
\r
36 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
38 This is not the real page either!
41 # This is supposed to be returned when the server gets the second
42 # Authorization: NTLM line passed-in from the client
44 HTTP/1.1 401 You now need to authenticate with the host
\r
45 Server: Microsoft-IIS/5.0
\r
46 WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef"
\r
48 Content-Type: text/html; charset=iso-8859-1
\r
50 We have not authenticated with the server yet
54 HTTP/1.1 407 NTLM type-1 received sending back type-2
\r
55 Server: Microsoft-IIS/5.0
\r
57 Content-Type: text/html; charset=iso-8859-1
\r
58 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
\r
60 HTTP/1.1 401 You now need to authenticate with the host
\r
61 Server: Microsoft-IIS/5.0
\r
62 WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef"
\r
64 Content-Type: text/html; charset=iso-8859-1
\r
66 HTTP/1.1 200 Authorizated fine
\r
69 Welcome to the end station
82 HTTP with proxy-requiring-NTLM to site-requiring-Digest
85 # we force our own host name, in order to make the test machine independent
86 CURL_GETHOSTNAME=curlhost
87 # we try to use the LD_PRELOAD hack, if not a debug build
88 LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
91 http://data.from.server.requiring.digest.hohoho.com/169 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --digest --user digest:alot
98 # Verify data after the test has been "shot"
104 GET http://data.from.server.requiring.digest.hohoho.com/169 HTTP/1.1
\r
105 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
\r
106 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.3
\r
107 Host: data.from.server.requiring.digest.hohoho.com
\r
109 Proxy-Connection: Keep-Alive
\r
111 GET http://data.from.server.requiring.digest.hohoho.com/169 HTTP/1.1
\r
112 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAAAwADAHAAAAAIAAgAcwAAAAAAAAAAAAAABoKBAIP6B+XVQ6vQsx3DfDXUVhd9436GAxPu0IYcl2Z7LxHmNeOAWQ+vxUmhuCFJBUgXCWZvb2N1cmxob3N0
\r
113 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.3
\r
114 Host: data.from.server.requiring.digest.hohoho.com
\r
116 Proxy-Connection: Keep-Alive
\r
118 GET http://data.from.server.requiring.digest.hohoho.com/169 HTTP/1.1
\r
119 Authorization: Digest username="digest", realm="r e a l m", nonce="abcdef", uri="/169", response="95d48591985a03c4b49cb962aa7bd3e6"
\r
120 User-Agent: curl/7.12.0-CVS (i686-pc-linux-gnu) libcurl/7.12.0-CVS OpenSSL/0.9.6b ipv6 zlib/1.1.4 GSS libidn/0.4.3
\r
121 Host: data.from.server.requiring.digest.hohoho.com
\r
123 Proxy-Connection: Keep-Alive
\r