xref: /aosp_15_r20/external/curl/tests/data/test590 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker<info>
3*6236dae4SAndroid Build Coastguard Worker<keywords>
4*6236dae4SAndroid Build Coastguard WorkerHTTP
5*6236dae4SAndroid Build Coastguard WorkerHTTP POST
6*6236dae4SAndroid Build Coastguard WorkerPOST callback
7*6236dae4SAndroid Build Coastguard WorkerHTTP proxy
8*6236dae4SAndroid Build Coastguard WorkerHTTP proxy NTLM auth
9*6236dae4SAndroid Build Coastguard WorkerNTLM
10*6236dae4SAndroid Build Coastguard Worker</keywords>
11*6236dae4SAndroid Build Coastguard Worker</info>
12*6236dae4SAndroid Build Coastguard Worker# Server-side
13*6236dae4SAndroid Build Coastguard Worker<reply>
14*6236dae4SAndroid Build Coastguard Worker
15*6236dae4SAndroid Build Coastguard Worker<data>
16*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required swsclose
17*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2
18*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Negotiate
19*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM
20*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
21*6236dae4SAndroid Build Coastguard WorkerConnection: close
22*6236dae4SAndroid Build Coastguard Worker
23*6236dae4SAndroid Build Coastguard WorkerThis is not the real page
24*6236dae4SAndroid Build Coastguard Worker</data>
25*6236dae4SAndroid Build Coastguard Worker
26*6236dae4SAndroid Build Coastguard Worker# this is returned first since we get no proxy-auth
27*6236dae4SAndroid Build Coastguard Worker<data1001>
28*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear
29*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
30*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34
31*6236dae4SAndroid Build Coastguard Worker
32*6236dae4SAndroid Build Coastguard WorkerHey you, authenticate or go away!
33*6236dae4SAndroid Build Coastguard Worker</data1001>
34*6236dae4SAndroid Build Coastguard Worker
35*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets the second
36*6236dae4SAndroid Build Coastguard Worker# Authorization: NTLM line passed-in from the client
37*6236dae4SAndroid Build Coastguard Worker<data1002>
38*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in proxy land swsclose
39*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
40*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
41*6236dae4SAndroid Build Coastguard WorkerContent-Length: 42
42*6236dae4SAndroid Build Coastguard Worker
43*6236dae4SAndroid Build Coastguard WorkerContents of that page you requested, sir.
44*6236dae4SAndroid Build Coastguard Worker</data1002>
45*6236dae4SAndroid Build Coastguard Worker
46*6236dae4SAndroid Build Coastguard Worker<datacheck>
47*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required swsclose
48*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2
49*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Negotiate
50*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM
51*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
52*6236dae4SAndroid Build Coastguard WorkerConnection: close
53*6236dae4SAndroid Build Coastguard Worker
54*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear
55*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
56*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34
57*6236dae4SAndroid Build Coastguard Worker
58*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in proxy land swsclose
59*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
60*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
61*6236dae4SAndroid Build Coastguard WorkerContent-Length: 42
62*6236dae4SAndroid Build Coastguard Worker
63*6236dae4SAndroid Build Coastguard WorkerContents of that page you requested, sir.
64*6236dae4SAndroid Build Coastguard Worker</datacheck>
65*6236dae4SAndroid Build Coastguard Worker</reply>
66*6236dae4SAndroid Build Coastguard Worker
67*6236dae4SAndroid Build Coastguard Worker# Client-side
68*6236dae4SAndroid Build Coastguard Worker<client>
69*6236dae4SAndroid Build Coastguard Worker<server>
70*6236dae4SAndroid Build Coastguard Workerhttp
71*6236dae4SAndroid Build Coastguard Worker</server>
72*6236dae4SAndroid Build Coastguard Worker# tool to use
73*6236dae4SAndroid Build Coastguard Worker<tool>
74*6236dae4SAndroid Build Coastguard Workerlib%TESTNUMBER
75*6236dae4SAndroid Build Coastguard Worker</tool>
76*6236dae4SAndroid Build Coastguard Worker<features>
77*6236dae4SAndroid Build Coastguard WorkerNTLM
78*6236dae4SAndroid Build Coastguard WorkerSSL
79*6236dae4SAndroid Build Coastguard Worker!SSPI
80*6236dae4SAndroid Build Coastguard Workerproxy
81*6236dae4SAndroid Build Coastguard Worker</features>
82*6236dae4SAndroid Build Coastguard Worker<name>
83*6236dae4SAndroid Build Coastguard WorkerHTTP proxy offers Negotiate+NTLM, use only NTLM
84*6236dae4SAndroid Build Coastguard Worker</name>
85*6236dae4SAndroid Build Coastguard Worker<command>
86*6236dae4SAndroid Build Coastguard Workerhttp://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT
87*6236dae4SAndroid Build Coastguard Worker</command>
88*6236dae4SAndroid Build Coastguard Worker</client>
89*6236dae4SAndroid Build Coastguard Worker
90*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
91*6236dae4SAndroid Build Coastguard Worker<verify>
92*6236dae4SAndroid Build Coastguard Worker
93*6236dae4SAndroid Build Coastguard Worker<protocol>
94*6236dae4SAndroid Build Coastguard WorkerGET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
95*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com
96*6236dae4SAndroid Build Coastguard WorkerAccept: */*
97*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
98*6236dae4SAndroid Build Coastguard Worker
99*6236dae4SAndroid Build Coastguard WorkerGET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
100*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com
101*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
102*6236dae4SAndroid Build Coastguard WorkerAccept: */*
103*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
104*6236dae4SAndroid Build Coastguard Worker
105*6236dae4SAndroid Build Coastguard WorkerGET http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
106*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com
107*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAAAgACAHAAAAALAAsAcgAAAAAAAAAAAAAAhoIBAAQt1KW5CgG4YdWWcfXyfXBz1ZMCzYp37xYjBiAizmw58O6eQS7yR66eqYGWeSwl9W1lV09SS1NUQVRJT04=
108*6236dae4SAndroid Build Coastguard WorkerAccept: */*
109*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
110*6236dae4SAndroid Build Coastguard Worker
111*6236dae4SAndroid Build Coastguard Worker</protocol>
112*6236dae4SAndroid Build Coastguard Worker</verify>
113*6236dae4SAndroid Build Coastguard Worker</testcase>
114