Annotation of embedaddon/curl/tests/data/test555, revision 1.1.1.1
1.1 misho 1: <testcase>
2: # NOTE: this test case is a duplicate of 547 but the tool is built to use the
3: # multi interface instead of easy, but that shouldn't be noticeable at all in
4: # this file!
5: <info>
6: <keywords>
7: HTTP
8: HTTP POST
9: POST callback
10: HTTP proxy
11: HTTP proxy NTLM auth
12: multi
13: </keywords>
14: </info>
15:
16: # Server-side
17: <reply>
18:
19: <data>
20: HTTP/1.1 407 Authorization Required swsclose
21: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
22: Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
23: Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
24: Proxy-Authenticate: NTLM
25: Content-Type: text/html; charset=iso-8859-1
26: Connection: close
27:
28: This is not the real page
29: </data>
30:
31: # this is returned first since we get no proxy-auth
32: <data1001>
33: HTTP/1.1 407 Authorization Required to proxy me my dear
34: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
35: Content-Length: 34
36:
37: Hey you, authenticate or go away!
38: </data1001>
39:
40: # This is supposed to be returned when the server gets the second
41: # Authorization: NTLM line passed-in from the client
42: <data1002>
43: HTTP/1.1 200 Things are fine in proxy land swsclose
44: Server: Microsoft-IIS/5.0
45: Content-Type: text/html; charset=iso-8859-1
46: Content-Length: 42
47:
48: Contents of that page you requested, sir.
49: </data1002>
50:
51: <datacheck>
52: HTTP/1.1 407 Authorization Required swsclose
53: Server: Apache/1.3.27 (Darwin) PHP/4.1.2
54: Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
55: Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
56: Proxy-Authenticate: NTLM
57: Content-Type: text/html; charset=iso-8859-1
58: Connection: close
59:
60: HTTP/1.1 407 Authorization Required to proxy me my dear
61: Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
62: Content-Length: 34
63:
64: HTTP/1.1 200 Things are fine in proxy land swsclose
65: Server: Microsoft-IIS/5.0
66: Content-Type: text/html; charset=iso-8859-1
67: Content-Length: 42
68:
69: Contents of that page you requested, sir.
70: </datacheck>
71: </reply>
72:
73: # Client-side
74: <client>
75: <server>
76: http
77: </server>
78: # tool to use
79: <tool>
80: lib555
81: </tool>
82: <features>
83: NTLM
84: SSL
85: !SSPI
86: debug
87: proxy
88: </features>
89: <name>
90: HTTP proxy auth NTLM with POST data from read callback multi-if
91: </name>
92: <setenv>
93: # we force our own host name, in order to make the test machine independent
94: CURL_GETHOSTNAME=curlhost
95: # we try to use the LD_PRELOAD hack, if not a debug build
96: LD_PRELOAD=%PWD/libtest/.libs/libhostname.so
97: </setenv>
98: <command>
99: http://test.remote.example.com/path/555 http://%HOSTIP:%HTTPPORT testuser:testpass
100: </command>
101: <precheck>
102: chkhostname curlhost
103: </precheck>
104: </client>
105:
106: # Verify data after the test has been "shot"
107: <verify>
108: <strip>
109: ^User-Agent: curl/.*
110: </strip>
111: <protocol>
112: POST http://test.remote.example.com/path/555 HTTP/1.1
113: Host: test.remote.example.com
114: 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
115: Accept: */*
116: Proxy-Connection: Keep-Alive
117: Content-Length: 36
118: Content-Type: application/x-www-form-urlencoded
119:
120: this is the blurb we want to upload
121: POST http://test.remote.example.com/path/555 HTTP/1.1
122: Host: test.remote.example.com
123: Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
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: 0
128: Content-Type: application/x-www-form-urlencoded
129:
130: POST http://test.remote.example.com/path/555 HTTP/1.1
131: Host: test.remote.example.com
132: Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAAIAAgAeAAAAAAAAAAAAAAAhoIBADQzMjE1MzIxAAAAAAAAAAAAAAAAAAAAADj3hs3u3j0kgJqCrLM+74BmaoNHDfIJjHRlc3R1c2VyY3VybGhvc3Q=
133: 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
134: Accept: */*
135: Proxy-Connection: Keep-Alive
136: Content-Length: 36
137: Content-Type: application/x-www-form-urlencoded
138:
139: this is the blurb we want to upload
140: </protocol>
141: </verify>
142: </testcase>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>