test694 (3012B)
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 401 Authorization Required 17 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 18 WWW-Authenticate: Negotiate 19 WWW-Authenticate: NTLM 20 Content-Type: text/html; charset=iso-8859-1 21 Content-Length: 26 22 23 This is not the real page 24 </data> 25 26 # this is returned first since we get no proxy-auth 27 <data1001> 28 HTTP/1.1 401 Authorization Required 29 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 30 Content-Length: 34 31 32 Hey you, authenticate or go away! 33 </data1001> 34 35 # This is supposed to be returned when the server gets the second 36 # Authorization: NTLM line passed-in from the client 37 <data1002> 38 HTTP/1.1 200 Things are fine 39 Server: Microsoft-IIS/5.0 40 Content-Type: text/html; charset=iso-8859-1 41 Content-Length: 42 42 43 Contents of that page you requested, sir. 44 </data1002> 45 46 # This is supposed to be returned when the server gets the second 47 # request. 48 <data10> 49 HTTP/1.1 200 Things are fine 50 Content-Type: yeah/maybe 51 Content-Length: 42 52 53 Contents of that second request. Differn. 54 </data10> 55 56 <datacheck> 57 HTTP/1.1 401 Authorization Required 58 Server: Apache/1.3.27 (Darwin) PHP/4.1.2 59 WWW-Authenticate: Negotiate 60 WWW-Authenticate: NTLM 61 Content-Type: text/html; charset=iso-8859-1 62 Content-Length: 26 63 64 HTTP/1.1 401 Authorization Required 65 WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAACGggEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 66 Content-Length: 34 67 68 HTTP/1.1 200 Things are fine 69 Server: Microsoft-IIS/5.0 70 Content-Type: text/html; charset=iso-8859-1 71 Content-Length: 42 72 73 Contents of that page you requested, sir. 74 HTTP/1.1 200 Things are fine 75 Content-Type: yeah/maybe 76 Content-Length: 42 77 78 Contents of that second request. Differn. 79 </datacheck> 80 </reply> 81 82 # Client-side 83 <client> 84 <server> 85 http 86 </server> 87 # tool to use 88 <tool> 89 lib%TESTNUMBER 90 </tool> 91 <features> 92 NTLM 93 !SSPI 94 </features> 95 <name> 96 HTTP with NTLM twice, verify CURLINFO_HTTPAUTH_USED 97 </name> 98 <command> 99 http://%HOSTIP:%HTTPPORT/path/mine http://%HOSTIP:%HTTPPORT/path/%TESTNUMBER0010 100 </command> 101 </client> 102 103 # Verify data after the test has been "shot" 104 <verify> 105 106 <protocol crlf="yes"> 107 GET /path/mine HTTP/1.1 108 Host: %HOSTIP:%HTTPPORT 109 Accept: */* 110 111 GET /path/mine HTTP/1.1 112 Host: %HOSTIP:%HTTPPORT 113 Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 114 Accept: */* 115 116 GET /path/mine HTTP/1.1 117 Host: %HOSTIP:%HTTPPORT 118 Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAAAYABgAWAAAAAAAAABwAAAAAgACAHAAAAALAAsAcgAAAAAAAAAAAAAAhoIBAAQt1KW5CgG4YdWWcfXyfXBz1ZMCzYp37xYjBiAizmw58O6eQS7yR66eqYGWeSwl9W1lV09SS1NUQVRJT04= 119 Accept: */* 120 121 GET /path/6940010 HTTP/1.1 122 Host: %HOSTIP:%HTTPPORT 123 Accept: */* 124 125 </protocol> 126 </verify> 127 </testcase>