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 Worker--anyauth 8*6236dae4SAndroid Build Coastguard Workerfollowlocation 9*6236dae4SAndroid Build Coastguard WorkerNTLM 10*6236dae4SAndroid Build Coastguard Worker</keywords> 11*6236dae4SAndroid Build Coastguard Worker</info> 12*6236dae4SAndroid Build Coastguard Worker# Server-side 13*6236dae4SAndroid Build Coastguard Worker<reply> 14*6236dae4SAndroid Build Coastguard Worker 15*6236dae4SAndroid Build Coastguard Worker<data> 16*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsclose 17*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 18*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic 19*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Wild-and-crazy 20*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM 21*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 22*6236dae4SAndroid Build Coastguard WorkerContent-Length: 26 23*6236dae4SAndroid Build Coastguard Worker 24*6236dae4SAndroid Build Coastguard WorkerThis is not the real page 25*6236dae4SAndroid Build Coastguard Worker</data> 26*6236dae4SAndroid Build Coastguard Worker 27*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets a first 28*6236dae4SAndroid Build Coastguard Worker# Authorization: NTLM line passed-in from the client 29*6236dae4SAndroid Build Coastguard Worker<data1001> 30*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Now gimme that second request of crap 31*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0 32*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 33*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34 34*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 35*6236dae4SAndroid Build Coastguard Worker 36*6236dae4SAndroid Build Coastguard WorkerThis is not the real page either! 37*6236dae4SAndroid Build Coastguard Worker</data1001> 38*6236dae4SAndroid Build Coastguard Worker 39*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets the second 40*6236dae4SAndroid Build Coastguard Worker# Authorization: NTLM line passed-in from the client 41*6236dae4SAndroid Build Coastguard Worker<data1002> 42*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 301 Things are fine in server land swsclose 43*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0 44*6236dae4SAndroid Build Coastguard WorkerConnection: close 45*6236dae4SAndroid Build Coastguard WorkerLocation: /you/%TESTNUMBER0010 46*6236dae4SAndroid Build Coastguard Worker 47*6236dae4SAndroid Build Coastguard Worker</data1002> 48*6236dae4SAndroid Build Coastguard Worker 49*6236dae4SAndroid Build Coastguard Worker# This is the first reply after the redirection 50*6236dae4SAndroid Build Coastguard Worker<data10> 51*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsclose 52*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 53*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic 54*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Wild-and-crazy 55*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM 56*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 57*6236dae4SAndroid Build Coastguard WorkerContent-Length: 26 58*6236dae4SAndroid Build Coastguard Worker 59*6236dae4SAndroid Build Coastguard WorkerThis is not the real page 60*6236dae4SAndroid Build Coastguard Worker</data10> 61*6236dae4SAndroid Build Coastguard Worker 62*6236dae4SAndroid Build Coastguard Worker<data1011> 63*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Now gimme that second round of crap 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: 34 67*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 68*6236dae4SAndroid Build Coastguard Worker 69*6236dae4SAndroid Build Coastguard WorkerThis is not the real page either! 70*6236dae4SAndroid Build Coastguard Worker</data1011> 71*6236dae4SAndroid Build Coastguard Worker 72*6236dae4SAndroid Build Coastguard Worker# This is supposed to be returned when the server gets the second 73*6236dae4SAndroid Build Coastguard Worker# Authorization: NTLM line passed-in from the client 74*6236dae4SAndroid Build Coastguard Worker<data1012> 75*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in server land swsclose 76*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0 77*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 78*6236dae4SAndroid Build Coastguard WorkerContent-Length: 32 79*6236dae4SAndroid Build Coastguard Worker 80*6236dae4SAndroid Build Coastguard WorkerFinally, this is the real page! 81*6236dae4SAndroid Build Coastguard Worker</data1012> 82*6236dae4SAndroid Build Coastguard Worker 83*6236dae4SAndroid Build Coastguard Worker<datacheck> 84*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsclose 85*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 86*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic 87*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Wild-and-crazy 88*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM 89*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 90*6236dae4SAndroid Build Coastguard WorkerContent-Length: 26 91*6236dae4SAndroid Build Coastguard Worker 92*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Now gimme that second request of crap 93*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0 94*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 95*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34 96*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 97*6236dae4SAndroid Build Coastguard Worker 98*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 301 Things are fine in server land swsclose 99*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0 100*6236dae4SAndroid Build Coastguard WorkerConnection: close 101*6236dae4SAndroid Build Coastguard WorkerLocation: /you/%TESTNUMBER0010 102*6236dae4SAndroid Build Coastguard Worker 103*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Authorization Required swsclose 104*6236dae4SAndroid Build Coastguard WorkerServer: Apache/1.3.27 (Darwin) PHP/4.1.2 105*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Basic 106*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: Wild-and-crazy 107*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM 108*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 109*6236dae4SAndroid Build Coastguard WorkerContent-Length: 26 110*6236dae4SAndroid Build Coastguard Worker 111*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 401 Now gimme that second round of crap 112*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0 113*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 114*6236dae4SAndroid Build Coastguard WorkerContent-Length: 34 115*6236dae4SAndroid Build Coastguard WorkerWWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 116*6236dae4SAndroid Build Coastguard Worker 117*6236dae4SAndroid Build Coastguard WorkerHTTP/1.1 200 Things are fine in server land swsclose 118*6236dae4SAndroid Build Coastguard WorkerServer: Microsoft-IIS/5.0 119*6236dae4SAndroid Build Coastguard WorkerContent-Type: text/html; charset=iso-8859-1 120*6236dae4SAndroid Build Coastguard WorkerContent-Length: 32 121*6236dae4SAndroid Build Coastguard Worker 122*6236dae4SAndroid Build Coastguard WorkerFinally, this is the real page! 123*6236dae4SAndroid Build Coastguard Worker</datacheck> 124*6236dae4SAndroid Build Coastguard Worker 125*6236dae4SAndroid Build Coastguard Worker</reply> 126*6236dae4SAndroid Build Coastguard Worker 127*6236dae4SAndroid Build Coastguard Worker# Client-side 128*6236dae4SAndroid Build Coastguard Worker<client> 129*6236dae4SAndroid Build Coastguard Worker<features> 130*6236dae4SAndroid Build Coastguard WorkerNTLM 131*6236dae4SAndroid Build Coastguard WorkerSSL 132*6236dae4SAndroid Build Coastguard Worker!SSPI 133*6236dae4SAndroid Build Coastguard Worker</features> 134*6236dae4SAndroid Build Coastguard Worker<server> 135*6236dae4SAndroid Build Coastguard Workerhttp 136*6236dae4SAndroid Build Coastguard Worker</server> 137*6236dae4SAndroid Build Coastguard Worker<name> 138*6236dae4SAndroid Build Coastguard WorkerHTTP with NTLM via --anyauth, and then follow-location with NTLM again 139*6236dae4SAndroid Build Coastguard Worker</name> 140*6236dae4SAndroid Build Coastguard Worker<command> 141*6236dae4SAndroid Build Coastguard Workerhttp://%HOSTIP:%HTTPPORT/%TESTNUMBER -u testuser:testpass --anyauth -L 142*6236dae4SAndroid Build Coastguard Worker</command> 143*6236dae4SAndroid Build Coastguard Worker</client> 144*6236dae4SAndroid Build Coastguard Worker 145*6236dae4SAndroid Build Coastguard Worker# Verify data after the test has been "shot" 146*6236dae4SAndroid Build Coastguard Worker<verify> 147*6236dae4SAndroid Build Coastguard Worker<protocol> 148*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1 149*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 150*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 151*6236dae4SAndroid Build Coastguard WorkerAccept: */* 152*6236dae4SAndroid Build Coastguard Worker 153*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1 154*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 155*6236dae4SAndroid Build Coastguard WorkerAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 156*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 157*6236dae4SAndroid Build Coastguard WorkerAccept: */* 158*6236dae4SAndroid Build Coastguard Worker 159*6236dae4SAndroid Build Coastguard WorkerGET /%TESTNUMBER HTTP/1.1 160*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 161*6236dae4SAndroid Build Coastguard WorkerAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 162*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 163*6236dae4SAndroid Build Coastguard WorkerAccept: */* 164*6236dae4SAndroid Build Coastguard Worker 165*6236dae4SAndroid Build Coastguard WorkerGET /you/%TESTNUMBER0010 HTTP/1.1 166*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 167*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 168*6236dae4SAndroid Build Coastguard WorkerAccept: */* 169*6236dae4SAndroid Build Coastguard Worker 170*6236dae4SAndroid Build Coastguard WorkerGET /you/%TESTNUMBER0010 HTTP/1.1 171*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 172*6236dae4SAndroid Build Coastguard WorkerAuthorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 173*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 174*6236dae4SAndroid Build Coastguard WorkerAccept: */* 175*6236dae4SAndroid Build Coastguard Worker 176*6236dae4SAndroid Build Coastguard WorkerGET /you/%TESTNUMBER0010 HTTP/1.1 177*6236dae4SAndroid Build Coastguard WorkerHost: %HOSTIP:%HTTPPORT 178*6236dae4SAndroid Build Coastguard WorkerAuthorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 179*6236dae4SAndroid Build Coastguard WorkerUser-Agent: curl/%VERSION 180*6236dae4SAndroid Build Coastguard WorkerAccept: */* 181*6236dae4SAndroid Build Coastguard Worker 182*6236dae4SAndroid Build Coastguard Worker</protocol> 183*6236dae4SAndroid Build Coastguard Worker</verify> 184*6236dae4SAndroid Build Coastguard Worker</testcase> 185