Annotation of embedaddon/curl/tests/data/test243, 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: --proxy-anyauth
9: </keywords>
10: </info>
11:
12: # Server-side
13: <reply>
14:
15: <data>
16: HTTP/1.1 407 Authorization Required swsclose
17: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
18: Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
19: Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
20: Proxy-Authenticate: NTLM
21: Content-Type: text/html; charset=iso-8859-1
22: Connection: close
23:
24: This is not the real page
25: </data>
26:
27: # this is returned first since we get no proxy-auth
28: <data1001>
29: HTTP/1.1 407 Authorization Required to proxy me my dear
30: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
31: Content-Length: 34
32:
33: Hey you, authenticate or go away!
34: </data1001>
35:
36: # This is supposed to be returned when the server gets the second
37: # Authorization: NTLM line passed-in from the client
38: <data1002>
39: HTTP/1.1 200 Things are fine in proxy land swsclose
40: Server: Microsoft-IIS/5.0
41: Content-Type: text/html; charset=iso-8859-1
42: Content-Length: 42
43:
44: Contents of that page you requested, sir.
45: </data1002>
46:
47: <datacheck>
48: HTTP/1.1 407 Authorization Required swsclose
49: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
50: Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
51: Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
52: Proxy-Authenticate: NTLM
53: Content-Type: text/html; charset=iso-8859-1
54: Connection: close
55:
56: HTTP/1.1 407 Authorization Required to proxy me my dear
57: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
58: Content-Length: 34
59:
60: HTTP/1.1 200 Things are fine in proxy land swsclose
61: Server: Microsoft-IIS/5.0
62: Content-Type: text/html; charset=iso-8859-1
63: Content-Length: 42
64:
65: Contents of that page you requested, sir.
66: </datacheck>
67: </reply>
68:
69: # Client-side
70: <client>
71: <server>
72: http
73: </server>
74: <features>
75: NTLM
76: SSL
77: !SSPI
78: debug
79: proxy
80: </features>
81: <name>
82: HTTP POST with --proxy-anyauth, picking NTLM
83: </name>
84: <setenv>
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
89: </setenv>
90: <command>
91: http://%HOSTIP:%HTTPPORT/243 --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-anyauth -d "postit"
92: </command>
93: <precheck>
94: chkhostname curlhost
95: </precheck>
96: </client>
97:
98: # Verify data after the test has been "shot"
99: <verify>
100: <strip>
101: ^User-Agent: curl/.*
102: </strip>
103: <protocol nonewline="yes">
104: POST http://%HOSTIP:%HTTPPORT/243 HTTP/1.1
105: Host: %HOSTIP:%HTTPPORT
106: User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
107: Accept: */*
108: Proxy-Connection: Keep-Alive
109: Content-Length: 6
110: Content-Type: application/x-www-form-urlencoded
111:
112: postitPOST http://%HOSTIP:%HTTPPORT/243 HTTP/1.1
113: Host: %HOSTIP:%HTTPPORT
114: Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
115: User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
116: Accept: */*
117: Proxy-Connection: Keep-Alive
118: Content-Length: 0
119: Content-Type: application/x-www-form-urlencoded
120:
121: POST http://%HOSTIP:%HTTPPORT/243 HTTP/1.1
122: Host: %HOSTIP:%HTTPPORT
123: Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
124: User-Agent: curl/7.13.2-CVS (i686-pc-linux-gnu) libcurl/7.13.2-CVS OpenSSL/0.9.7e zlib/1.2.2 libidn/0.5.13
125: Accept: */*
126: Proxy-Connection: Keep-Alive
127: Content-Length: 6
128: Content-Type: application/x-www-form-urlencoded
129:
130: postit
131: </protocol>
132: </verify>
133: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>