test155 (3502B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP PUT 6 HTTP NTLM auth 7 NTLM 8 </keywords> 9 </info> 10 11 # Server-side 12 <reply> 13 <data> 14 HTTP/1.1 401 NTLM Authorization Required swsclose 15 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 16 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 17 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts" 18 WWW-Authenticate: NTLM 19 Content-Type: text/html; charset=iso-8859-1 20 Connection: close 21 22 moo 23 </data> 24 25 # This is supposed to be returned when the server gets a first 26 # Authorization: NTLM line passed-in from the client 27 <data1001> 28 HTTP/1.1 401 Type-1 received, send back type-2 29 Server: Microsoft-IIS/5.0 30 Content-Length: 34 31 Content-Type: text/html; charset=iso-8859-1 32 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 33 34 This is not the real page either! 35 </data1001> 36 37 # This is supposed to be returned when the server gets the second 38 # Authorization: NTLM line passed-in from the client 39 <data1002> 40 HTTP/1.1 200 Type-3 Received and all Things are fine swsclose 41 Server: Microsoft-IIS/5.0 42 Content-Type: text/html; charset=iso-8859-1 43 Content-Length: 32 44 45 Finally, this is the real page! 46 </data1002> 47 48 <datacheck> 49 HTTP/1.1 401 NTLM Authorization Required swsclose 50 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 51 WWW-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 52 WWW-Authenticate: Basic realm="gimme all yer s3cr3ts" 53 WWW-Authenticate: NTLM 54 Content-Type: text/html; charset=iso-8859-1 55 Connection: close 56 57 HTTP/1.1 401 Type-1 received, send back type-2 58 Server: Microsoft-IIS/5.0 59 Content-Length: 34 60 Content-Type: text/html; charset=iso-8859-1 61 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 62 63 HTTP/1.1 200 Type-3 Received and all Things are fine swsclose 64 Server: Microsoft-IIS/5.0 65 Content-Type: text/html; charset=iso-8859-1 66 Content-Length: 32 67 68 Finally, this is the real page! 69 </datacheck> 70 71 </reply> 72 73 # Client-side 74 <client> 75 <features> 76 NTLM 77 SSL 78 !SSPI 79 </features> 80 <server> 81 http 82 </server> 83 <name> 84 HTTP PUT with --anyauth authorization (picking NTLM) 85 </name> 86 <command> 87 http://%HOSTIP:%HTTPPORT/%TESTNUMBER -T %LOGDIR/put%TESTNUMBER -u testuser:testpass --anyauth 88 </command> 89 <file name="%LOGDIR/put%TESTNUMBER"> 90 This is data we upload with PUT 91 a second line 92 line three 93 four is the number of lines 94 </file> 95 </client> 96 97 # Verify data after the test has been "shot" 98 <verify> 99 <protocol> 100 PUT /%TESTNUMBER HTTP/1.1 101 Host: %HOSTIP:%HTTPPORT 102 User-Agent: curl/%VERSION 103 Accept: */* 104 Content-Length: 85 105 106 This is data we upload with PUT 107 a second line 108 line three 109 four is the number of lines 110 PUT /%TESTNUMBER HTTP/1.1 111 Host: %HOSTIP:%HTTPPORT 112 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 113 User-Agent: curl/%VERSION 114 Accept: */* 115 Content-Length: 0 116 117 PUT /%TESTNUMBER HTTP/1.1 118 Host: %HOSTIP:%HTTPPORT 119 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 120 User-Agent: curl/%VERSION 121 Accept: */* 122 Content-Length: 85 123 124 This is data we upload with PUT 125 a second line 126 line three 127 four is the number of lines 128 </protocol> 129 </verify> 130 </testcase>