xref: /curl/tests/data/test555 (revision 5a41abef)
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>
7HTTP
8HTTP POST
9POST callback
10HTTP proxy
11HTTP proxy NTLM auth
12multi
13NTLM
14</keywords>
15</info>
16
17# Server-side
18<reply>
19
20<data>
21HTTP/1.1 407 Authorization Required swsclose
22Server: Apache/1.3.27 (Darwin) PHP/4.1.2
23Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
24Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
25Proxy-Authenticate: NTLM
26Content-Type: text/html; charset=iso-8859-1
27Connection: close
28
29This is not the real page
30</data>
31
32# this is returned first since we get no proxy-auth
33<data1001>
34HTTP/1.1 407 Authorization Required to proxy me my dear
35Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
36Content-Length: 34
37
38Hey you, authenticate or go away!
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>
44HTTP/1.1 200 Things are fine in proxy land swsclose
45Server: Microsoft-IIS/5.0
46Content-Type: text/html; charset=iso-8859-1
47Content-Length: 42
48
49Contents of that page you requested, sir.
50</data1002>
51
52<datacheck>
53HTTP/1.1 407 Authorization Required swsclose
54Server: Apache/1.3.27 (Darwin) PHP/4.1.2
55Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
56Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
57Proxy-Authenticate: NTLM
58Content-Type: text/html; charset=iso-8859-1
59Connection: close
60
61HTTP/1.1 407 Authorization Required to proxy me my dear
62Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
63Content-Length: 34
64
65HTTP/1.1 200 Things are fine in proxy land swsclose
66Server: Microsoft-IIS/5.0
67Content-Type: text/html; charset=iso-8859-1
68Content-Length: 42
69
70Contents of that page you requested, sir.
71</datacheck>
72</reply>
73
74# Client-side
75<client>
76<server>
77http
78</server>
79# tool to use
80<tool>
81lib%TESTNUMBER
82</tool>
83<features>
84NTLM
85SSL
86!SSPI
87proxy
88</features>
89<name>
90HTTP proxy auth NTLM with POST data from read callback multi-if
91</name>
92<command>
93http://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT testuser:testpass
94</command>
95</client>
96
97# Verify data after the test has been "shot"
98<verify>
99<protocol>
100POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
101Host: test.remote.example.com
102Accept: */*
103Proxy-Connection: Keep-Alive
104Content-Length: 36
105Content-Type: application/x-www-form-urlencoded
106
107this is the blurb we want to upload
108POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
109Host: test.remote.example.com
110Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
111Accept: */*
112Proxy-Connection: Keep-Alive
113Content-Length: 0
114Content-Type: application/x-www-form-urlencoded
115
116POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
117Host: test.remote.example.com
118Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
119Accept: */*
120Proxy-Connection: Keep-Alive
121Content-Length: 36
122Content-Type: application/x-www-form-urlencoded
123
124this is the blurb we want to upload
125</protocol>
126</verify>
127</testcase>
128