test547 (3486B)
1 <testcase> 2 <info> 3 <keywords> 4 HTTP 5 HTTP POST 6 POST callback 7 HTTP proxy 8 HTTP proxy NTLM auth 9 NTLM 10 </keywords> 11 </info> 12 # Server-side 13 <reply> 14 15 <data> 16 HTTP/1.1 407 Authorization Required swsclose 17 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 18 Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 19 Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts" 20 Proxy-Authenticate: NTLM 21 Content-Type: text/html; charset=iso-8859-1 22 Connection: close 23 24 This is not the real page 25 </data> 26 27 # this is returned first since we get no proxy-auth 28 <data1001> 29 HTTP/1.1 407 Authorization Required to proxy me my dear 30 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 31 Content-Length: 34 32 33 Hey you, authenticate or go away! 34 </data1001> 35 36 # This is supposed to be returned when the server gets the second 37 # Authorization: NTLM line passed-in from the client 38 <data1002> 39 HTTP/1.1 200 Things are fine in proxy land swsclose 40 Server: Microsoft-IIS/5.0 41 Content-Type: text/html; charset=iso-8859-1 42 Content-Length: 42 43 44 Contents of that page you requested, sir. 45 </data1002> 46 47 <datacheck> 48 HTTP/1.1 407 Authorization Required swsclose 49 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 50 Proxy-Authenticate: Blackmagic realm="gimme all yer s3cr3ts" 51 Proxy-Authenticate: Basic realm="gimme all yer s3cr3ts" 52 Proxy-Authenticate: NTLM 53 Content-Type: text/html; charset=iso-8859-1 54 Connection: close 55 56 HTTP/1.1 407 Authorization Required to proxy me my dear 57 Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 58 Content-Length: 34 59 60 HTTP/1.1 200 Things are fine in proxy land swsclose 61 Server: Microsoft-IIS/5.0 62 Content-Type: text/html; charset=iso-8859-1 63 Content-Length: 42 64 65 Contents of that page you requested, sir. 66 </datacheck> 67 </reply> 68 69 # Client-side 70 <client> 71 <server> 72 http 73 </server> 74 # tool to use 75 <tool> 76 lib%TESTNUMBER 77 </tool> 78 <features> 79 NTLM 80 SSL 81 !SSPI 82 proxy 83 </features> 84 <name> 85 HTTP proxy auth NTLM with POST data from read callback 86 </name> 87 <command> 88 http://test.remote.example.com/path/%TESTNUMBER http://%HOSTIP:%HTTPPORT testuser:testpass 89 </command> 90 </client> 91 92 # Verify data after the test has been "shot" 93 <verify> 94 <protocol> 95 POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1 96 Host: test.remote.example.com 97 Accept: */* 98 Proxy-Connection: Keep-Alive 99 Content-Length: 36 100 Content-Type: application/x-www-form-urlencoded 101 102 this is the blurb we want to upload 103 POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1 104 Host: test.remote.example.com 105 Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 106 Accept: */* 107 Proxy-Connection: Keep-Alive 108 Content-Length: 0 109 Content-Type: application/x-www-form-urlencoded 110 111 POST http://test.remote.example.com/path/%TESTNUMBER HTTP/1.1 112 Host: test.remote.example.com 113 Proxy-Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAACAAIAHAAAAALAAsAeAAAAAAAAAAAAAAAhoIBAFpkQwKRCZFMhjj0tw47wEjKHRHlvzfxQamFcheMuv8v+xeqphEO5V41xRd7R9deOXRlc3R1c2VyV09SS1NUQVRJT04= 114 Accept: */* 115 Proxy-Connection: Keep-Alive 116 Content-Length: 36 117 Content-Type: application/x-www-form-urlencoded 118 119 this is the blurb we want to upload 120 </protocol> 121 </verify> 122 </testcase>