xref: /third_party/curl/tests/data/test90 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP GET
613498266Sopenharmony_ciHTTP NTLM auth
713498266Sopenharmony_ci--anyauth
813498266Sopenharmony_cifollowlocation
913498266Sopenharmony_ciNTLM
1013498266Sopenharmony_ci</keywords>
1113498266Sopenharmony_ci</info>
1213498266Sopenharmony_ci# Server-side
1313498266Sopenharmony_ci<reply>
1413498266Sopenharmony_ci
1513498266Sopenharmony_ci<data>
1613498266Sopenharmony_ciHTTP/1.1 401 Authorization Required swsclose
1713498266Sopenharmony_ciServer: Apache/1.3.27 (Darwin) PHP/4.1.2
1813498266Sopenharmony_ciWWW-Authenticate: Basic
1913498266Sopenharmony_ciWWW-Authenticate: Wild-and-crazy
2013498266Sopenharmony_ciWWW-Authenticate: NTLM
2113498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
2213498266Sopenharmony_ciContent-Length: 26
2313498266Sopenharmony_ci
2413498266Sopenharmony_ciThis is not the real page
2513498266Sopenharmony_ci</data>
2613498266Sopenharmony_ci
2713498266Sopenharmony_ci# This is supposed to be returned when the server gets a first
2813498266Sopenharmony_ci# Authorization: NTLM line passed-in from the client
2913498266Sopenharmony_ci<data1001>
3013498266Sopenharmony_ciHTTP/1.1 401 Now gimme that second request of crap
3113498266Sopenharmony_ciServer: Microsoft-IIS/5.0
3213498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
3313498266Sopenharmony_ciContent-Length: 34
3413498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
3513498266Sopenharmony_ci
3613498266Sopenharmony_ciThis is not the real page either!
3713498266Sopenharmony_ci</data1001>
3813498266Sopenharmony_ci
3913498266Sopenharmony_ci# This is supposed to be returned when the server gets the second
4013498266Sopenharmony_ci# Authorization: NTLM line passed-in from the client
4113498266Sopenharmony_ci<data1002>
4213498266Sopenharmony_ciHTTP/1.1 301 Things are fine in server land swsclose
4313498266Sopenharmony_ciServer: Microsoft-IIS/5.0
4413498266Sopenharmony_ciConnection: close
4513498266Sopenharmony_ciLocation: /you/%TESTNUMBER0010
4613498266Sopenharmony_ci
4713498266Sopenharmony_ci</data1002>
4813498266Sopenharmony_ci
4913498266Sopenharmony_ci# This is the first reply after the redirection
5013498266Sopenharmony_ci<data10>
5113498266Sopenharmony_ciHTTP/1.1 401 Authorization Required swsclose
5213498266Sopenharmony_ciServer: Apache/1.3.27 (Darwin) PHP/4.1.2
5313498266Sopenharmony_ciWWW-Authenticate: Basic
5413498266Sopenharmony_ciWWW-Authenticate: Wild-and-crazy
5513498266Sopenharmony_ciWWW-Authenticate: NTLM
5613498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
5713498266Sopenharmony_ciContent-Length: 26
5813498266Sopenharmony_ci
5913498266Sopenharmony_ciThis is not the real page
6013498266Sopenharmony_ci</data10>
6113498266Sopenharmony_ci
6213498266Sopenharmony_ci<data1011>
6313498266Sopenharmony_ciHTTP/1.1 401 Now gimme that second round of crap
6413498266Sopenharmony_ciServer: Microsoft-IIS/5.0
6513498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
6613498266Sopenharmony_ciContent-Length: 34
6713498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
6813498266Sopenharmony_ci
6913498266Sopenharmony_ciThis is not the real page either!
7013498266Sopenharmony_ci</data1011>
7113498266Sopenharmony_ci
7213498266Sopenharmony_ci# This is supposed to be returned when the server gets the second
7313498266Sopenharmony_ci# Authorization: NTLM line passed-in from the client
7413498266Sopenharmony_ci<data1012>
7513498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land swsclose
7613498266Sopenharmony_ciServer: Microsoft-IIS/5.0
7713498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
7813498266Sopenharmony_ciContent-Length: 32
7913498266Sopenharmony_ci
8013498266Sopenharmony_ciFinally, this is the real page!
8113498266Sopenharmony_ci</data1012>
8213498266Sopenharmony_ci
8313498266Sopenharmony_ci<datacheck>
8413498266Sopenharmony_ciHTTP/1.1 401 Authorization Required swsclose
8513498266Sopenharmony_ciServer: Apache/1.3.27 (Darwin) PHP/4.1.2
8613498266Sopenharmony_ciWWW-Authenticate: Basic
8713498266Sopenharmony_ciWWW-Authenticate: Wild-and-crazy
8813498266Sopenharmony_ciWWW-Authenticate: NTLM
8913498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
9013498266Sopenharmony_ciContent-Length: 26
9113498266Sopenharmony_ci
9213498266Sopenharmony_ciHTTP/1.1 401 Now gimme that second request of crap
9313498266Sopenharmony_ciServer: Microsoft-IIS/5.0
9413498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
9513498266Sopenharmony_ciContent-Length: 34
9613498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
9713498266Sopenharmony_ci
9813498266Sopenharmony_ciHTTP/1.1 301 Things are fine in server land swsclose
9913498266Sopenharmony_ciServer: Microsoft-IIS/5.0
10013498266Sopenharmony_ciConnection: close
10113498266Sopenharmony_ciLocation: /you/%TESTNUMBER0010
10213498266Sopenharmony_ci
10313498266Sopenharmony_ciHTTP/1.1 401 Authorization Required swsclose
10413498266Sopenharmony_ciServer: Apache/1.3.27 (Darwin) PHP/4.1.2
10513498266Sopenharmony_ciWWW-Authenticate: Basic
10613498266Sopenharmony_ciWWW-Authenticate: Wild-and-crazy
10713498266Sopenharmony_ciWWW-Authenticate: NTLM
10813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
10913498266Sopenharmony_ciContent-Length: 26
11013498266Sopenharmony_ci
11113498266Sopenharmony_ciHTTP/1.1 401 Now gimme that second round of crap
11213498266Sopenharmony_ciServer: Microsoft-IIS/5.0
11313498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
11413498266Sopenharmony_ciContent-Length: 34
11513498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA==
11613498266Sopenharmony_ci
11713498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land swsclose
11813498266Sopenharmony_ciServer: Microsoft-IIS/5.0
11913498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
12013498266Sopenharmony_ciContent-Length: 32
12113498266Sopenharmony_ci
12213498266Sopenharmony_ciFinally, this is the real page!
12313498266Sopenharmony_ci</datacheck>
12413498266Sopenharmony_ci
12513498266Sopenharmony_ci</reply>
12613498266Sopenharmony_ci
12713498266Sopenharmony_ci# Client-side
12813498266Sopenharmony_ci<client>
12913498266Sopenharmony_ci<features>
13013498266Sopenharmony_ciNTLM
13113498266Sopenharmony_ciSSL
13213498266Sopenharmony_ci!SSPI
13313498266Sopenharmony_ci</features>
13413498266Sopenharmony_ci<server>
13513498266Sopenharmony_cihttp
13613498266Sopenharmony_ci</server>
13713498266Sopenharmony_ci<name>
13813498266Sopenharmony_ciHTTP with NTLM via --anyauth, and then follow-location with NTLM again
13913498266Sopenharmony_ci</name>
14013498266Sopenharmony_ci<command>
14113498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth -L
14213498266Sopenharmony_ci</command>
14313498266Sopenharmony_ci</client>
14413498266Sopenharmony_ci
14513498266Sopenharmony_ci# Verify data after the test has been "shot"
14613498266Sopenharmony_ci<verify>
14713498266Sopenharmony_ci<protocol>
14813498266Sopenharmony_ciGET /%TESTNUMBER HTTP/1.1
14913498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
15013498266Sopenharmony_ciUser-Agent: curl/%VERSION
15113498266Sopenharmony_ciAccept: */*
15213498266Sopenharmony_ci
15313498266Sopenharmony_ciGET /%TESTNUMBER HTTP/1.1
15413498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
15513498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
15613498266Sopenharmony_ciUser-Agent: curl/%VERSION
15713498266Sopenharmony_ciAccept: */*
15813498266Sopenharmony_ci
15913498266Sopenharmony_ciGET /%TESTNUMBER HTTP/1.1
16013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
16113498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
16213498266Sopenharmony_ciUser-Agent: curl/%VERSION
16313498266Sopenharmony_ciAccept: */*
16413498266Sopenharmony_ci
16513498266Sopenharmony_ciGET /you/%TESTNUMBER0010 HTTP/1.1
16613498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
16713498266Sopenharmony_ciUser-Agent: curl/%VERSION
16813498266Sopenharmony_ciAccept: */*
16913498266Sopenharmony_ci
17013498266Sopenharmony_ciGET /you/%TESTNUMBER0010 HTTP/1.1
17113498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
17213498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
17313498266Sopenharmony_ciUser-Agent: curl/%VERSION
17413498266Sopenharmony_ciAccept: */*
17513498266Sopenharmony_ci
17613498266Sopenharmony_ciGET /you/%TESTNUMBER0010 HTTP/1.1
17713498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
17813498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04=
17913498266Sopenharmony_ciUser-Agent: curl/%VERSION
18013498266Sopenharmony_ciAccept: */*
18113498266Sopenharmony_ci
18213498266Sopenharmony_ci</protocol>
18313498266Sopenharmony_ci</verify>
18413498266Sopenharmony_ci</testcase>
185