xref: /aosp_15_r20/external/curl/tests/data/test169 (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 proxy
7*6236dae4SAndroid Build Coastguard WorkerHTTP proxy NTLM auth
8*6236dae4SAndroid Build Coastguard WorkerHTTP Digest auth
9*6236dae4SAndroid Build Coastguard WorkerNTLM
10*6236dae4SAndroid Build Coastguard Worker</keywords>
11*6236dae4SAndroid Build Coastguard Worker</info>
12*6236dae4SAndroid Build Coastguard Worker
13*6236dae4SAndroid Build Coastguard Worker# Server-side
14*6236dae4SAndroid Build Coastguard Worker<reply>
15*6236dae4SAndroid Build Coastguard Worker
16*6236dae4SAndroid Build Coastguard Worker# this is returned first since we get no proxy-auth
17*6236dae4SAndroid Build Coastguard Worker<data>
18*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear swsclose
19*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM
20*6236dae4SAndroid Build Coastguard Worker
21*6236dae4SAndroid Build Coastguard WorkerAnd you should ignore this data.
22*6236dae4SAndroid Build Coastguard Worker</data>
23*6236dae4SAndroid Build Coastguard Worker
24*6236dae4SAndroid Build Coastguard Worker# then this is returned since we get no server-auth
25*6236dae4SAndroid Build Coastguard Worker<data1000>
26*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Authorizated fine
27*6236dae4SAndroid Build Coastguard WorkerContent-Length: 27
28*6236dae4SAndroid Build Coastguard Worker
29*6236dae4SAndroid Build Coastguard WorkerWelcome to the end station
30*6236dae4SAndroid Build Coastguard Worker</data1000>
31*6236dae4SAndroid Build Coastguard Worker
32*6236dae4SAndroid Build Coastguard Worker<data1001>
33*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 NTLM type-1 received sending back type-2
34*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
35*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34
36*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
37*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
38*6236dae4SAndroid Build Coastguard Worker
39*6236dae4SAndroid Build Coastguard WorkerThis is not the real page either!
40*6236dae4SAndroid Build Coastguard Worker</data1001>
41*6236dae4SAndroid Build Coastguard Worker
42*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets the second
43*6236dae4SAndroid Build Coastguard Worker# Authorization: NTLM line passed-in from the client
44*6236dae4SAndroid Build Coastguard Worker<data1002>
45*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 You now need to authenticate with the host
46*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
47*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="r e a l m", nonce="abcdef"
48*6236dae4SAndroid Build Coastguard WorkerContent-Length: 46
49*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
50*6236dae4SAndroid Build Coastguard Worker
51*6236dae4SAndroid Build Coastguard WorkerWe have not authenticated with the server yet
52*6236dae4SAndroid Build Coastguard Worker</data1002>
53*6236dae4SAndroid Build Coastguard Worker
54*6236dae4SAndroid Build Coastguard Worker<datacheck>
55*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 NTLM type-1 received sending back type-2
56*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
57*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34
58*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
59*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
60*6236dae4SAndroid Build Coastguard Worker
61*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 You now need to authenticate with the host
62*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
63*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Digest realm="r e a l m", nonce="abcdef"
64*6236dae4SAndroid Build Coastguard WorkerContent-Length: 46
65*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
66*6236dae4SAndroid Build Coastguard Worker
67*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Authorizated fine
68*6236dae4SAndroid Build Coastguard WorkerContent-Length: 27
69*6236dae4SAndroid Build Coastguard Worker
70*6236dae4SAndroid Build Coastguard WorkerWelcome to the end station
71*6236dae4SAndroid Build Coastguard Worker</datacheck>
72*6236dae4SAndroid Build Coastguard Worker</reply>
73*6236dae4SAndroid Build Coastguard Worker
74*6236dae4SAndroid Build Coastguard Worker# Client-side
75*6236dae4SAndroid Build Coastguard Worker<client>
76*6236dae4SAndroid Build Coastguard Worker<server>
77*6236dae4SAndroid Build Coastguard Workerhttp
78*6236dae4SAndroid Build Coastguard Worker</server>
79*6236dae4SAndroid Build Coastguard Worker<features>
80*6236dae4SAndroid Build Coastguard WorkerNTLM
81*6236dae4SAndroid Build Coastguard WorkerSSL
82*6236dae4SAndroid Build Coastguard Worker!SSPI
83*6236dae4SAndroid Build Coastguard Workerproxy
84*6236dae4SAndroid Build Coastguard Worker</features>
85*6236dae4SAndroid Build Coastguard Worker<name>
86*6236dae4SAndroid Build Coastguard WorkerHTTP with proxy-requiring-NTLM to site-requiring-Digest
87*6236dae4SAndroid Build Coastguard Worker</name>
88*6236dae4SAndroid Build Coastguard Worker<command>
89*6236dae4SAndroid Build Coastguard Workerhttp://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user testuser:testpass --proxy-ntlm --digest --user digest:alot
90*6236dae4SAndroid Build Coastguard Worker</command>
91*6236dae4SAndroid Build Coastguard Worker</client>
92*6236dae4SAndroid Build Coastguard Worker
93*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
94*6236dae4SAndroid Build Coastguard Worker<verify>
95*6236dae4SAndroid Build Coastguard Worker<protocol>
96*6236dae4SAndroid Build Coastguard WorkerGET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
97*6236dae4SAndroid Build Coastguard WorkerHost: data.from.server.requiring.digest.hohoho.com
98*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
99*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
100*6236dae4SAndroid Build Coastguard WorkerAccept: */*
101*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
102*6236dae4SAndroid Build Coastguard Worker
103*6236dae4SAndroid Build Coastguard WorkerGET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
104*6236dae4SAndroid Build Coastguard WorkerHost: data.from.server.requiring.digest.hohoho.com
105*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
106*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
107*6236dae4SAndroid Build Coastguard WorkerAccept: */*
108*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
109*6236dae4SAndroid Build Coastguard Worker
110*6236dae4SAndroid Build Coastguard WorkerGET http://data.from.server.requiring.digest.hohoho.com/%TESTNUMBER HTTP/1.1
111*6236dae4SAndroid Build Coastguard WorkerHost: data.from.server.requiring.digest.hohoho.com
112*6236dae4SAndroid Build Coastguard WorkerAuthorization: Digest username="digest", realm="r e a l m", nonce="abcdef", uri="/%TESTNUMBER", response="95d48591985a03c4b49cb962aa7bd3e6"
113*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
114*6236dae4SAndroid Build Coastguard WorkerAccept: */*
115*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
116*6236dae4SAndroid Build Coastguard Worker
117*6236dae4SAndroid Build Coastguard Worker</protocol>
118*6236dae4SAndroid Build Coastguard Worker</verify>
119*6236dae4SAndroid Build Coastguard Worker</testcase>
120