xref: /aosp_15_r20/external/curl/tests/data/test91 (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 NTLM auth
7*6236dae4SAndroid Build Coastguard WorkerNTLM
8*6236dae4SAndroid Build Coastguard Worker</keywords>
9*6236dae4SAndroid Build Coastguard Worker</info>
10*6236dae4SAndroid Build Coastguard Worker# Server-side
11*6236dae4SAndroid Build Coastguard Worker<reply>
12*6236dae4SAndroid Build Coastguard Worker<data>
13*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsclose
14*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2
15*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Magic-Negotiate
16*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM
17*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic realm="daniel"
18*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
19*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0
20*6236dae4SAndroid Build Coastguard WorkerConnection: close
21*6236dae4SAndroid Build Coastguard Worker
22*6236dae4SAndroid Build Coastguard Worker</data>
23*6236dae4SAndroid Build Coastguard Worker
24*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets a first
25*6236dae4SAndroid Build Coastguard Worker# Authorization: NTLM line passed-in from the client
26*6236dae4SAndroid Build Coastguard Worker<data1001>
27*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Now gimme that second request of crap
28*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
29*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34
30*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
31*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
32*6236dae4SAndroid Build Coastguard Worker
33*6236dae4SAndroid Build Coastguard WorkerThis is not the real page either!
34*6236dae4SAndroid Build Coastguard Worker</data1001>
35*6236dae4SAndroid Build Coastguard Worker
36*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets the second
37*6236dae4SAndroid Build Coastguard Worker# Authorization: NTLM line passed-in from the client
38*6236dae4SAndroid Build Coastguard Worker<data1002>
39*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in server land swsclose
40*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
41*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
42*6236dae4SAndroid Build Coastguard WorkerContent-Length: 32
43*6236dae4SAndroid Build Coastguard Worker
44*6236dae4SAndroid Build Coastguard WorkerFinally, this is the real page!
45*6236dae4SAndroid Build Coastguard Worker</data1002>
46*6236dae4SAndroid Build Coastguard Worker
47*6236dae4SAndroid Build Coastguard Worker<datacheck>
48*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsclose
49*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2
50*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Magic-Negotiate
51*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM
52*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic realm="daniel"
53*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
54*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0
55*6236dae4SAndroid Build Coastguard WorkerConnection: close
56*6236dae4SAndroid Build Coastguard Worker
57*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Now gimme that second request of crap
58*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
59*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34
60*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
61*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
62*6236dae4SAndroid Build Coastguard Worker
63*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in server land swsclose
64*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
65*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
66*6236dae4SAndroid Build Coastguard WorkerContent-Length: 32
67*6236dae4SAndroid Build Coastguard Worker
68*6236dae4SAndroid Build Coastguard WorkerFinally, this is the real page!
69*6236dae4SAndroid Build Coastguard Worker</datacheck>
70*6236dae4SAndroid Build Coastguard Worker
71*6236dae4SAndroid Build Coastguard Worker</reply>
72*6236dae4SAndroid Build Coastguard Worker
73*6236dae4SAndroid Build Coastguard Worker# Client-side
74*6236dae4SAndroid Build Coastguard Worker<client>
75*6236dae4SAndroid Build Coastguard Worker<features>
76*6236dae4SAndroid Build Coastguard WorkerNTLM
77*6236dae4SAndroid Build Coastguard WorkerSSL
78*6236dae4SAndroid Build Coastguard Worker!SSPI
79*6236dae4SAndroid Build Coastguard Worker</features>
80*6236dae4SAndroid Build Coastguard Worker<server>
81*6236dae4SAndroid Build Coastguard Workerhttp
82*6236dae4SAndroid Build Coastguard Worker</server>
83*6236dae4SAndroid Build Coastguard Worker<name>
84*6236dae4SAndroid Build Coastguard WorkerHTTP with NTLM/Negotiate/Basic, anyauth and user with domain, with size 0
85*6236dae4SAndroid Build Coastguard Worker</name>
86*6236dae4SAndroid Build Coastguard Worker<command>
87*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER --anyauth -u mydomain\\myself:secret
88*6236dae4SAndroid Build Coastguard Worker</command>
89*6236dae4SAndroid Build Coastguard Worker</client>
90*6236dae4SAndroid Build Coastguard Worker
91*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
92*6236dae4SAndroid Build Coastguard Worker<verify>
93*6236dae4SAndroid Build Coastguard Worker<protocol>
94*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1
95*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
96*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
97*6236dae4SAndroid Build Coastguard WorkerAccept: */*
98*6236dae4SAndroid Build Coastguard Worker
99*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1
100*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
101*6236dae4SAndroid Build Coastguard WorkerAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
102*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
103*6236dae4SAndroid Build Coastguard WorkerAccept: */*
104*6236dae4SAndroid Build Coastguard Worker
105*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1
106*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT
107*6236dae4SAndroid Build Coastguard WorkerAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAgACABwAAAABgAGAHgAAAALAAsAfgAAAAAAAAAAAAAAhoIBAMIyJpR5mHpg2FZha5kRaFZ9436GAxPu0C5llxexSQ5QzVkiLSfkcpVyRgCXXqR+Am15ZG9tYWlubXlzZWxmV09SS1NUQVRJT04=
108*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION
109*6236dae4SAndroid Build Coastguard WorkerAccept: */*
110*6236dae4SAndroid Build Coastguard Worker
111*6236dae4SAndroid Build Coastguard Worker</protocol>
112*6236dae4SAndroid Build Coastguard Worker</verify>
113*6236dae4SAndroid Build Coastguard Worker</testcase>
114