xref: /aosp_15_r20/external/curl/tests/data/test555 (revision 6236dae45794135f37c4eb022389c904c8b0090d)
1*6236dae4SAndroid Build Coastguard Worker<testcase>
2*6236dae4SAndroid Build Coastguard Worker# NOTE: this test case is a duplicate of 547 but the tool is built to use the
3*6236dae4SAndroid Build Coastguard Worker# multi interface instead of easy, but that shouldn't be noticeable at all in
4*6236dae4SAndroid Build Coastguard Worker# this file!
5*6236dae4SAndroid Build Coastguard Worker<info>
6*6236dae4SAndroid Build Coastguard Worker<keywords>
7*6236dae4SAndroid Build Coastguard WorkerHTTP
8*6236dae4SAndroid Build Coastguard WorkerHTTP POST
9*6236dae4SAndroid Build Coastguard WorkerPOST callback
10*6236dae4SAndroid Build Coastguard WorkerHTTP proxy
11*6236dae4SAndroid Build Coastguard WorkerHTTP proxy NTLM auth
12*6236dae4SAndroid Build Coastguard Workermulti
13*6236dae4SAndroid Build Coastguard WorkerNTLM
14*6236dae4SAndroid Build Coastguard Worker</keywords>
15*6236dae4SAndroid Build Coastguard Worker</info>
16*6236dae4SAndroid Build Coastguard Worker
17*6236dae4SAndroid Build Coastguard Worker# Server-side
18*6236dae4SAndroid Build Coastguard Worker<reply>
19*6236dae4SAndroid Build Coastguard Worker
20*6236dae4SAndroid Build Coastguard Worker<data>
21*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required swsclose
22*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2
23*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
24*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
25*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM
26*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
27*6236dae4SAndroid Build Coastguard WorkerConnection: close
28*6236dae4SAndroid Build Coastguard Worker
29*6236dae4SAndroid Build Coastguard WorkerThis is not the real page
30*6236dae4SAndroid Build Coastguard Worker</data>
31*6236dae4SAndroid Build Coastguard Worker
32*6236dae4SAndroid Build Coastguard Worker# this is returned first since we get no proxy-auth
33*6236dae4SAndroid Build Coastguard Worker<data1001>
34*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear
35*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
36*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34
37*6236dae4SAndroid Build Coastguard Worker
38*6236dae4SAndroid Build Coastguard WorkerHey you, authenticate or go away!
39*6236dae4SAndroid Build Coastguard Worker</data1001>
40*6236dae4SAndroid Build Coastguard Worker
41*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets the second
42*6236dae4SAndroid Build Coastguard Worker# Authorization: NTLM line passed-in from the client
43*6236dae4SAndroid Build Coastguard Worker<data1002>
44*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in proxy land swsclose
45*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
46*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
47*6236dae4SAndroid Build Coastguard WorkerContent-Length: 42
48*6236dae4SAndroid Build Coastguard Worker
49*6236dae4SAndroid Build Coastguard WorkerContents of that page you requested, sir.
50*6236dae4SAndroid Build Coastguard Worker</data1002>
51*6236dae4SAndroid Build Coastguard Worker
52*6236dae4SAndroid Build Coastguard Worker<datacheck>
53*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required swsclose
54*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2
55*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts"
56*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: Basic realm="gimme all yer s3cr3ts"
57*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM
58*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
59*6236dae4SAndroid Build Coastguard WorkerConnection: close
60*6236dae4SAndroid Build Coastguard Worker
61*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 407 Authorization Required to proxy me my dear
62*6236dae4SAndroid Build Coastguard WorkerProxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
63*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34
64*6236dae4SAndroid Build Coastguard Worker
65*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in proxy land swsclose
66*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0
67*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1
68*6236dae4SAndroid Build Coastguard WorkerContent-Length: 42
69*6236dae4SAndroid Build Coastguard Worker
70*6236dae4SAndroid Build Coastguard WorkerContents of that page you requested, sir.
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# tool to use
80*6236dae4SAndroid Build Coastguard Worker<tool>
81*6236dae4SAndroid Build Coastguard Workerlib%TESTNUMBER
82*6236dae4SAndroid Build Coastguard Worker</tool>
83*6236dae4SAndroid Build Coastguard Worker<features>
84*6236dae4SAndroid Build Coastguard WorkerNTLM
85*6236dae4SAndroid Build Coastguard WorkerSSL
86*6236dae4SAndroid Build Coastguard Worker!SSPI
87*6236dae4SAndroid Build Coastguard Workerproxy
88*6236dae4SAndroid Build Coastguard Worker</features>
89*6236dae4SAndroid Build Coastguard Worker<name>
90*6236dae4SAndroid Build Coastguard WorkerHTTP proxy auth NTLM with POST data from read callback multi-if
91*6236dae4SAndroid Build Coastguard Worker</name>
92*6236dae4SAndroid Build Coastguard Worker<command>
93*6236dae4SAndroid Build Coastguard Workerhttp://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT testuser:testpass
94*6236dae4SAndroid Build Coastguard Worker</command>
95*6236dae4SAndroid Build Coastguard Worker</client>
96*6236dae4SAndroid Build Coastguard Worker
97*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot"
98*6236dae4SAndroid Build Coastguard Worker<verify>
99*6236dae4SAndroid Build Coastguard Worker<protocol>
100*6236dae4SAndroid Build Coastguard WorkerPOST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
101*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com
102*6236dae4SAndroid Build Coastguard WorkerAccept: */*
103*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
104*6236dae4SAndroid Build Coastguard WorkerContent-Length: 36
105*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded
106*6236dae4SAndroid Build Coastguard Worker
107*6236dae4SAndroid Build Coastguard Workerthis is the blurb we want to upload
108*6236dae4SAndroid Build Coastguard WorkerPOST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
109*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com
110*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
111*6236dae4SAndroid Build Coastguard WorkerAccept: */*
112*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
113*6236dae4SAndroid Build Coastguard WorkerContent-Length: 0
114*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded
115*6236dae4SAndroid Build Coastguard Worker
116*6236dae4SAndroid Build Coastguard WorkerPOST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1
117*6236dae4SAndroid Build Coastguard WorkerHost: test.remote.example.com
118*6236dae4SAndroid Build Coastguard WorkerProxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
119*6236dae4SAndroid Build Coastguard WorkerAccept: */*
120*6236dae4SAndroid Build Coastguard WorkerProxy-Connection: Keep-Alive
121*6236dae4SAndroid Build Coastguard WorkerContent-Length: 36
122*6236dae4SAndroid Build Coastguard WorkerContent-Type: application/x-www-form-urlencoded
123*6236dae4SAndroid Build Coastguard Worker
124*6236dae4SAndroid Build Coastguard Workerthis is the blurb we want to upload
125*6236dae4SAndroid Build Coastguard Worker</protocol>
126*6236dae4SAndroid Build Coastguard Worker</verify>
127*6236dae4SAndroid Build Coastguard Worker</testcase>
128