xref: /aosp_15_r20/external/curl/tests/data/test1021 (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 GET
6*6236dae4SAndroid Build Coastguard WorkerHTTP CONNECT
7*6236dae4SAndroid Build Coastguard WorkerHTTP proxy
8*6236dae4SAndroid Build Coastguard WorkerHTTP proxy NTLM auth
9*6236dae4SAndroid Build Coastguard Worker--proxy-anyauth
10*6236dae4SAndroid Build Coastguard WorkerNTLM
11*6236dae4SAndroid Build Coastguard Worker</keywords>
12*6236dae4SAndroid Build Coastguard Worker</info>
13*6236dae4SAndroid Build Coastguard Worker# Server-side
14*6236dae4SAndroid Build Coastguard Worker<reply>
15*6236dae4SAndroid Build Coastguard Worker
16*6236dae4SAndroid Build Coastguard Worker<connect>
17*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear swsclose
18*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM
19*6236dae4SAndroid Build Coastguard WorkerContent-Length: 16
20*6236dae4SAndroid Build Coastguard WorkerConnection: close
21*6236dae4SAndroid Build Coastguard Worker
22*6236dae4SAndroid Build Coastguard Workerdata to discard
23*6236dae4SAndroid Build Coastguard Worker</connect>
24*6236dae4SAndroid Build Coastguard Worker
25*6236dae4SAndroid Build Coastguard Worker# this is returned first since we get no proxy-auth
26*6236dae4SAndroid Build Coastguard Worker<connect1001>
27*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear
28*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
29*6236dae4SAndroid Build Coastguard WorkerContent-Length: 28
30*6236dae4SAndroid Build Coastguard Worker
31*6236dae4SAndroid Build Coastguard Worker27 bytes and newline to ign
32*6236dae4SAndroid Build Coastguard Worker</connect1001>
33*6236dae4SAndroid Build Coastguard Worker
34*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets the second
35*6236dae4SAndroid Build Coastguard Worker# Authorization: NTLM line passed-in from the client
36*6236dae4SAndroid Build Coastguard Worker<connect1002>
37*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in proxy land
38*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
39*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
40*6236dae4SAndroid Build Coastguard Worker
41*6236dae4SAndroid Build Coastguard Worker</connect1002>
42*6236dae4SAndroid Build Coastguard Worker
43*6236dae4SAndroid Build Coastguard Worker# this is returned when we get a GET!
44*6236dae4SAndroid Build Coastguard Worker<data2>
45*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
46*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
47*6236dae4SAndroid Build Coastguard WorkerContent-Length: 7
48*6236dae4SAndroid Build Coastguard WorkerConnection: close
49*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
50*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes
51*6236dae4SAndroid Build Coastguard Worker
52*6236dae4SAndroid Build Coastguard Workerdaniel
53*6236dae4SAndroid Build Coastguard Worker</data2>
54*6236dae4SAndroid Build Coastguard Worker
55*6236dae4SAndroid Build Coastguard Worker# then this is returned when we get proxy-auth
56*6236dae4SAndroid Build Coastguard Worker<data1000>
57*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK swsbounce
58*6236dae4SAndroid Build Coastguard WorkerServer: no
59*6236dae4SAndroid Build Coastguard Worker
60*6236dae4SAndroid Build Coastguard WorkerNice proxy auth sir!
61*6236dae4SAndroid Build Coastguard Worker</data1000>
62*6236dae4SAndroid Build Coastguard Worker
63*6236dae4SAndroid Build Coastguard Worker<datacheck>
64*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear swsclose
65*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM
66*6236dae4SAndroid Build Coastguard WorkerContent-Length: 16
67*6236dae4SAndroid Build Coastguard WorkerConnection: close
68*6236dae4SAndroid Build Coastguard Worker
69*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear
70*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
71*6236dae4SAndroid Build Coastguard WorkerContent-Length: 28
72*6236dae4SAndroid Build Coastguard Worker
73*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in proxy land
74*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
75*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
76*6236dae4SAndroid Build Coastguard Worker
77*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 OK
78*6236dae4SAndroid Build Coastguard WorkerDate: Tue, 09 Nov 2010 14:49:00 GMT
79*6236dae4SAndroid Build Coastguard WorkerContent-Length: 7
80*6236dae4SAndroid Build Coastguard WorkerConnection: close
81*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html
82*6236dae4SAndroid Build Coastguard WorkerFunny-head: yesyes
83*6236dae4SAndroid Build Coastguard Worker
84*6236dae4SAndroid Build Coastguard Workerdaniel
85*6236dae4SAndroid Build Coastguard Worker</datacheck>
86*6236dae4SAndroid Build Coastguard Worker</reply>
87*6236dae4SAndroid Build Coastguard Worker
88*6236dae4SAndroid Build Coastguard Worker# Client-side
89*6236dae4SAndroid Build Coastguard Worker<client>
90*6236dae4SAndroid Build Coastguard Worker<server>
91*6236dae4SAndroid Build Coastguard Workerhttp
92*6236dae4SAndroid Build Coastguard Worker</server>
93*6236dae4SAndroid Build Coastguard Worker<features>
94*6236dae4SAndroid Build Coastguard WorkerNTLM
95*6236dae4SAndroid Build Coastguard WorkerSSL
96*6236dae4SAndroid Build Coastguard Worker!SSPI
97*6236dae4SAndroid Build Coastguard Workerproxy
98*6236dae4SAndroid Build Coastguard Worker</features>
99*6236dae4SAndroid Build Coastguard Worker<name>
100*6236dae4SAndroid Build Coastguard WorkerHTTP proxy CONNECT with any proxyauth and proxy offers NTLM and close
101*6236dae4SAndroid Build Coastguard Worker</name>
102*6236dae4SAndroid Build Coastguard Worker<command>
103*6236dae4SAndroid Build Coastguard Workerhttp://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-anyauth --proxytunnel
104*6236dae4SAndroid Build Coastguard Worker</command>
105*6236dae4SAndroid Build Coastguard Worker</client>
106*6236dae4SAndroid Build Coastguard Worker
107*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
108*6236dae4SAndroid Build Coastguard Worker<verify>
109*6236dae4SAndroid Build Coastguard Worker<protocol>
110*6236dae4SAndroid Build Coastguard WorkerCONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
111*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com.%TESTNUMBER:%HTTPPORT
112*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
113*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
114*6236dae4SAndroid Build Coastguard Worker
115*6236dae4SAndroid Build Coastguard WorkerCONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
116*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com.%TESTNUMBER:%HTTPPORT
117*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
118*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
119*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
120*6236dae4SAndroid Build Coastguard Worker
121*6236dae4SAndroid Build Coastguard WorkerCONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
122*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com.%TESTNUMBER:%HTTPPORT
123*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
124*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
125*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
126*6236dae4SAndroid Build Coastguard Worker
127*6236dae4SAndroid Build Coastguard WorkerGET /path/%TESTNUMBER0002 HTTP/1.1
128*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com.%TESTNUMBER:%HTTPPORT
129*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
130*6236dae4SAndroid Build Coastguard WorkerAccept: */*
131*6236dae4SAndroid Build Coastguard Worker
132*6236dae4SAndroid Build Coastguard Worker</protocol>
133*6236dae4SAndroid Build Coastguard Worker</verify>
134*6236dae4SAndroid Build Coastguard Worker</testcase>
135