xref: /third_party/curl/tests/data/test2031 (revision 13498266)
113498266Sopenharmony_ci<testcase>
213498266Sopenharmony_ci<info>
313498266Sopenharmony_ci<keywords>
413498266Sopenharmony_ciHTTP
513498266Sopenharmony_ciHTTP GET
613498266Sopenharmony_ciHTTP NTLM auth
713498266Sopenharmony_ciNTLM
813498266Sopenharmony_ci</keywords>
913498266Sopenharmony_ci</info>
1013498266Sopenharmony_ci# Server-side
1113498266Sopenharmony_ci<reply>
1213498266Sopenharmony_ci
1313498266Sopenharmony_ci<!-- First request has NTLM auth, wrong password -->
1413498266Sopenharmony_ci<data100>
1513498266Sopenharmony_ciHTTP/1.1 401 Need NTLM auth
1613498266Sopenharmony_ciServer: Microsoft-IIS/5.0
1713498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
1813498266Sopenharmony_ciContent-Length: 27
1913498266Sopenharmony_ciWWW-Authenticate: NTLM
2013498266Sopenharmony_ci
2113498266Sopenharmony_ciThis is not the real page!
2213498266Sopenharmony_ci</data100>
2313498266Sopenharmony_ci
2413498266Sopenharmony_ci<data1101>
2513498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate
2613498266Sopenharmony_ciServer: Microsoft-IIS/5.0
2713498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
2813498266Sopenharmony_ciContent-Length: 33
2913498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
3013498266Sopenharmony_ci
3113498266Sopenharmony_ciThis is still not the real page!
3213498266Sopenharmony_ci</data1101>
3313498266Sopenharmony_ci
3413498266Sopenharmony_ci<data1102>
3513498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password
3613498266Sopenharmony_ciServer: Microsoft-IIS/5.0
3713498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
3813498266Sopenharmony_ciContent-Length: 29
3913498266Sopenharmony_ciWWW-Authenticate: NTLM
4013498266Sopenharmony_ci
4113498266Sopenharmony_ciThis is a bad password page!
4213498266Sopenharmony_ci</data1102>
4313498266Sopenharmony_ci
4413498266Sopenharmony_ci<!-- Second request has NTLM auth, right password -->
4513498266Sopenharmony_ci<data200>
4613498266Sopenharmony_ciHTTP/1.1 401 Need NTLM auth (2)
4713498266Sopenharmony_ciServer: Microsoft-IIS/5.0
4813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
4913498266Sopenharmony_ciContent-Length: 27
5013498266Sopenharmony_ciWWW-Authenticate: NTLM
5113498266Sopenharmony_ci
5213498266Sopenharmony_ciThis is not the real page!
5313498266Sopenharmony_ci</data200>
5413498266Sopenharmony_ci
5513498266Sopenharmony_ci<data1201>
5613498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (2)
5713498266Sopenharmony_ciServer: Microsoft-IIS/5.0
5813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
5913498266Sopenharmony_ciContent-Length: 33
6013498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
6113498266Sopenharmony_ci
6213498266Sopenharmony_ciThis is still not the real page!
6313498266Sopenharmony_ci</data1201>
6413498266Sopenharmony_ci
6513498266Sopenharmony_ci<data1202>
6613498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land
6713498266Sopenharmony_ciServer: Microsoft-IIS/5.0
6813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
6913498266Sopenharmony_ciContent-Length: 32
7013498266Sopenharmony_ci
7113498266Sopenharmony_ciFinally, this is the real page!
7213498266Sopenharmony_ci</data1202>
7313498266Sopenharmony_ci
7413498266Sopenharmony_ci<!-- Third request has NTLM auth, wrong password -->
7513498266Sopenharmony_ci<data300>
7613498266Sopenharmony_ciHTTP/1.1 401 Need NTLM auth (3)
7713498266Sopenharmony_ciServer: Microsoft-IIS/5.0
7813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
7913498266Sopenharmony_ciContent-Length: 27
8013498266Sopenharmony_ciWWW-Authenticate: NTLM
8113498266Sopenharmony_ci
8213498266Sopenharmony_ciThis is not the real page!
8313498266Sopenharmony_ci</data300>
8413498266Sopenharmony_ci
8513498266Sopenharmony_ci<data1301>
8613498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (3)
8713498266Sopenharmony_ciServer: Microsoft-IIS/5.0
8813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
8913498266Sopenharmony_ciContent-Length: 33
9013498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
9113498266Sopenharmony_ci
9213498266Sopenharmony_ciThis is still not the real page!
9313498266Sopenharmony_ci</data1301>
9413498266Sopenharmony_ci
9513498266Sopenharmony_ci<data1302>
9613498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password (2)
9713498266Sopenharmony_ciServer: Microsoft-IIS/5.0
9813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
9913498266Sopenharmony_ciContent-Length: 29
10013498266Sopenharmony_ciWWW-Authenticate: NTLM
10113498266Sopenharmony_ci
10213498266Sopenharmony_ciThis is a bad password page!
10313498266Sopenharmony_ci</data1302>
10413498266Sopenharmony_ci
10513498266Sopenharmony_ci<!-- Fourth request has NTLM auth, wrong password -->
10613498266Sopenharmony_ci<data400>
10713498266Sopenharmony_ciHTTP/1.1 401 Need NTLM auth (4)
10813498266Sopenharmony_ciServer: Microsoft-IIS/5.0
10913498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
11013498266Sopenharmony_ciContent-Length: 27
11113498266Sopenharmony_ciWWW-Authenticate: NTLM
11213498266Sopenharmony_ci
11313498266Sopenharmony_ciThis is not the real page!
11413498266Sopenharmony_ci</data400>
11513498266Sopenharmony_ci
11613498266Sopenharmony_ci<data1401>
11713498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (4)
11813498266Sopenharmony_ciServer: Microsoft-IIS/5.0
11913498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
12013498266Sopenharmony_ciContent-Length: 33
12113498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
12213498266Sopenharmony_ci
12313498266Sopenharmony_ciThis is still not the real page!
12413498266Sopenharmony_ci</data1401>
12513498266Sopenharmony_ci
12613498266Sopenharmony_ci<data1402>
12713498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password (3)
12813498266Sopenharmony_ciServer: Microsoft-IIS/5.0
12913498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
13013498266Sopenharmony_ciContent-Length: 29
13113498266Sopenharmony_ciWWW-Authenticate: NTLM
13213498266Sopenharmony_ci
13313498266Sopenharmony_ciThis is a bad password page!
13413498266Sopenharmony_ci</data1402>
13513498266Sopenharmony_ci
13613498266Sopenharmony_ci<!-- Fifth request has NTLM auth, right password -->
13713498266Sopenharmony_ci<data500>
13813498266Sopenharmony_ciHTTP/1.1 401 Need NTLM auth (5)
13913498266Sopenharmony_ciServer: Microsoft-IIS/5.0
14013498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
14113498266Sopenharmony_ciContent-Length: 27
14213498266Sopenharmony_ciWWW-Authenticate: NTLM
14313498266Sopenharmony_ci
14413498266Sopenharmony_ciThis is not the real page!
14513498266Sopenharmony_ci</data500>
14613498266Sopenharmony_ci
14713498266Sopenharmony_ci<data1501>
14813498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (5)
14913498266Sopenharmony_ciServer: Microsoft-IIS/5.0
15013498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
15113498266Sopenharmony_ciContent-Length: 33
15213498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
15313498266Sopenharmony_ci
15413498266Sopenharmony_ciThis is still not the real page!
15513498266Sopenharmony_ci</data1501>
15613498266Sopenharmony_ci
15713498266Sopenharmony_ci<data1502>
15813498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land (2)
15913498266Sopenharmony_ciServer: Microsoft-IIS/5.0
16013498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
16113498266Sopenharmony_ciContent-Length: 32
16213498266Sopenharmony_ci
16313498266Sopenharmony_ciFinally, this is the real page!
16413498266Sopenharmony_ci</data1502>
16513498266Sopenharmony_ci
16613498266Sopenharmony_ci<datacheck>
16713498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate
16813498266Sopenharmony_ciServer: Microsoft-IIS/5.0
16913498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
17013498266Sopenharmony_ciContent-Length: 33
17113498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
17213498266Sopenharmony_ci
17313498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password
17413498266Sopenharmony_ciServer: Microsoft-IIS/5.0
17513498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
17613498266Sopenharmony_ciContent-Length: 29
17713498266Sopenharmony_ciWWW-Authenticate: NTLM
17813498266Sopenharmony_ci
17913498266Sopenharmony_ciThis is a bad password page!
18013498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (2)
18113498266Sopenharmony_ciServer: Microsoft-IIS/5.0
18213498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
18313498266Sopenharmony_ciContent-Length: 33
18413498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
18513498266Sopenharmony_ci
18613498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land
18713498266Sopenharmony_ciServer: Microsoft-IIS/5.0
18813498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
18913498266Sopenharmony_ciContent-Length: 32
19013498266Sopenharmony_ci
19113498266Sopenharmony_ciFinally, this is the real page!
19213498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (3)
19313498266Sopenharmony_ciServer: Microsoft-IIS/5.0
19413498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
19513498266Sopenharmony_ciContent-Length: 33
19613498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
19713498266Sopenharmony_ci
19813498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password (2)
19913498266Sopenharmony_ciServer: Microsoft-IIS/5.0
20013498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
20113498266Sopenharmony_ciContent-Length: 29
20213498266Sopenharmony_ciWWW-Authenticate: NTLM
20313498266Sopenharmony_ci
20413498266Sopenharmony_ciThis is a bad password page!
20513498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (4)
20613498266Sopenharmony_ciServer: Microsoft-IIS/5.0
20713498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
20813498266Sopenharmony_ciContent-Length: 33
20913498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
21013498266Sopenharmony_ci
21113498266Sopenharmony_ciHTTP/1.1 401 Sorry wrong password (3)
21213498266Sopenharmony_ciServer: Microsoft-IIS/5.0
21313498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
21413498266Sopenharmony_ciContent-Length: 29
21513498266Sopenharmony_ciWWW-Authenticate: NTLM
21613498266Sopenharmony_ci
21713498266Sopenharmony_ciThis is a bad password page!
21813498266Sopenharmony_ciHTTP/1.1 401 NTLM intermediate (5)
21913498266Sopenharmony_ciServer: Microsoft-IIS/5.0
22013498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
22113498266Sopenharmony_ciContent-Length: 33
22213498266Sopenharmony_ciWWW-Authenticate: NTLM TlRMTVNTUAACAAAACAAIADAAAACGgAEAq6U1NAWaJCIAAAAAAAAAAAAAAAA4AAAATlRMTUF1dGg=
22313498266Sopenharmony_ci
22413498266Sopenharmony_ciHTTP/1.1 200 Things are fine in server land (2)
22513498266Sopenharmony_ciServer: Microsoft-IIS/5.0
22613498266Sopenharmony_ciContent-Type: text/html; charset=iso-8859-1
22713498266Sopenharmony_ciContent-Length: 32
22813498266Sopenharmony_ci
22913498266Sopenharmony_ciFinally, this is the real page!
23013498266Sopenharmony_ci</datacheck>
23113498266Sopenharmony_ci
23213498266Sopenharmony_ci</reply>
23313498266Sopenharmony_ci
23413498266Sopenharmony_ci# Client-side
23513498266Sopenharmony_ci<client>
23613498266Sopenharmony_ci<features>
23713498266Sopenharmony_ciNTLM
23813498266Sopenharmony_ciSSL
23913498266Sopenharmony_ci!SSPI
24013498266Sopenharmony_ci</features>
24113498266Sopenharmony_ci<server>
24213498266Sopenharmony_cihttp
24313498266Sopenharmony_ci</server>
24413498266Sopenharmony_ci<tool>
24513498266Sopenharmony_cilibauthretry
24613498266Sopenharmony_ci</tool>
24713498266Sopenharmony_ci
24813498266Sopenharmony_ci<name>
24913498266Sopenharmony_ciHTTP authorization retry (NTLM)
25013498266Sopenharmony_ci</name>
25113498266Sopenharmony_ci<command>
25213498266Sopenharmony_cihttp://%HOSTIP:%HTTPPORT/%TESTNUMBER ntlm ntlm
25313498266Sopenharmony_ci</command>
25413498266Sopenharmony_ci</client>
25513498266Sopenharmony_ci
25613498266Sopenharmony_ci# Verify data after the test has been "shot"
25713498266Sopenharmony_ci<verify>
25813498266Sopenharmony_ci<protocol>
25913498266Sopenharmony_ciGET /%TESTNUMBER0100 HTTP/1.1
26013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
26113498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
26213498266Sopenharmony_ciAccept: */*
26313498266Sopenharmony_ci
26413498266Sopenharmony_ciGET /%TESTNUMBER0100 HTTP/1.1
26513498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
26613498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
26713498266Sopenharmony_ciAccept: */*
26813498266Sopenharmony_ci
26913498266Sopenharmony_ciGET /%TESTNUMBER0200 HTTP/1.1
27013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
27113498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
27213498266Sopenharmony_ciAccept: */*
27313498266Sopenharmony_ci
27413498266Sopenharmony_ciGET /%TESTNUMBER0200 HTTP/1.1
27513498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
27613498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
27713498266Sopenharmony_ciAccept: */*
27813498266Sopenharmony_ci
27913498266Sopenharmony_ciGET /%TESTNUMBER0300 HTTP/1.1
28013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
28113498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
28213498266Sopenharmony_ciAccept: */*
28313498266Sopenharmony_ci
28413498266Sopenharmony_ciGET /%TESTNUMBER0300 HTTP/1.1
28513498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
28613498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
28713498266Sopenharmony_ciAccept: */*
28813498266Sopenharmony_ci
28913498266Sopenharmony_ciGET /%TESTNUMBER0400 HTTP/1.1
29013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
29113498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
29213498266Sopenharmony_ciAccept: */*
29313498266Sopenharmony_ci
29413498266Sopenharmony_ciGET /%TESTNUMBER0400 HTTP/1.1
29513498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
29613498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABANgKEcT5xUUBHw5+0m4FjWTGNzg6PeHJHbaPwNwCt/tXcnIeTQCTMAg12SPDyNXMf3Rlc3R1c2VyV09SS1NUQVRJT04=
29713498266Sopenharmony_ciAccept: */*
29813498266Sopenharmony_ci
29913498266Sopenharmony_ciGET /%TESTNUMBER0500 HTTP/1.1
30013498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
30113498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
30213498266Sopenharmony_ciAccept: */*
30313498266Sopenharmony_ci
30413498266Sopenharmony_ciGET /%TESTNUMBER0500 HTTP/1.1
30513498266Sopenharmony_ciHost: %HOSTIP:%HTTPPORT
30613498266Sopenharmony_ciAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoABAI+/Fp9IERAQ74OsdNPbBpg7o8CVwLSO4DtFyIcZHUMKVktWIu92s2892OVpd2JzqnRlc3R1c2VyV09SS1NUQVRJT04=
30713498266Sopenharmony_ciAccept: */*
30813498266Sopenharmony_ci
30913498266Sopenharmony_ci</protocol>
31013498266Sopenharmony_ci</verify>
31113498266Sopenharmony_ci</testcase>
312