Annotation of embedaddon/curl/tests/data/test169, revision 1.1.1.1
1.1 misho 1: <testcase>
2: <info>
3: <keywords>
4: HTTP
5: HTTP GET
6: HTTP proxy
7: HTTP proxy NTLM auth
8: HTTP Digest auth
9: </keywords>
10: </info>
11:
12: # Server-side
13: <reply>
14:
15: # this is returned first since we get no proxy-auth
16: <data>
17: HTTP/1.1 407 Authorization Required to proxy me my dear swsclose
18: Proxy-Authenticate: NTLM
19:
20: And you should ignore this data.
21: </data>
22:
23: # then this is returned since we get no server-auth
24: <data1000>
25: HTTP/1.1 200 Authorizated fine
26: Content-Length: 27
27:
28: Welcome to the end station
29: </data1000>
30:
31: <data1001>
32: HTTP/1.1 407 NTLM type-1 received sending back type-2
33: Server: Microsoft-IIS/5.0
34: Content-Length: 34
35: Content-Type: text/html; charset=iso-8859-1
36: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
37:
38: This is not the real page either!
39: </data1001>
40:
41: # This is supposed to be returned when the server gets the second
42: # Authorization: NTLM line passed-in from the client
43: <data1002>
44: HTTP/1.1 401 You now need to authenticate with the host
45: Server: Microsoft-IIS/5.0
46: WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef"
47: Content-Length: 46
48: Content-Type: text/html; charset=iso-8859-1
49:
50: We have not authenticated with the server yet
51: </data1002>
52:
53: <datacheck>
54: HTTP/1.1 407 NTLM type-1 received sending back type-2
55: Server: Microsoft-IIS/5.0
56: Content-Length: 34
57: Content-Type: text/html; charset=iso-8859-1
58: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
59:
60: HTTP/1.1 401 You now need to authenticate with the host
61: Server: Microsoft-IIS/5.0
62: WWW-Authenticate: Digest realm="r e a l m", nonce="abcdef"
63: Content-Length: 46
64: Content-Type: text/html; charset=iso-8859-1
65:
66: HTTP/1.1 200 Authorizated fine
67: Content-Length: 27
68:
69: Welcome to the end station
70: </datacheck>
71: </reply>
72:
73: # Client-side
74: <client>
75: <server>
76: http
77: </server>
78: <features>
79: NTLM
80: SSL
81: !SSPI
82: debug
83: proxy
84: </features>
85: <name>
86: HTTP with proxy-requiring-NTLM to site-requiring-Digest
87: </name>
88: <setenv>
89: # we force our own host name, in order to make the test machine independent
90: CURL_GETHOSTNAME=curlhost
91: # we try to use the LD_PRELOAD hack, if not a debug build
92: LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
93: </setenv>
94: <command>
95: http://data.from.server.requiring.digest.hohoho.com/169 --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-ntlm --digest --user digest:alot
96: </command>
97: <precheck>
98: chkhostname curlhost
99: </precheck>
100: </client>
101:
102: # Verify data after the test has been "shot"
103: <verify>
104: <strip>
105: ^User-Agent: curl/.*
106: </strip>
107: <protocol>
108: GET http://data.from.server.requiring.digest.hohoho.com/169 HTTP/1.1
109: Host: data.from.server.requiring.digest.hohoho.com
110: Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
111: 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
112: Accept: */*
113: Proxy-Connection: Keep-Alive
114:
115: GET http://data.from.server.requiring.digest.hohoho.com/169 HTTP/1.1
116: Host: data.from.server.requiring.digest.hohoho.com
117: Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
118: 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
119: Accept: */*
120: Proxy-Connection: Keep-Alive
121:
122: GET http://data.from.server.requiring.digest.hohoho.com/169 HTTP/1.1
123: Host: data.from.server.requiring.digest.hohoho.com
124: Authorization: Digest username="digest", realm="r e a l m", nonce="abcdef", uri="/169", response="95d48591985a03c4b49cb962aa7bd3e6"
125: 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
126: Accept: */*
127: Proxy-Connection: Keep-Alive
128:
129: </protocol>
130: </verify>
131: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>