1<testcase> 2<info> 3# This test is a copy of test 67, modified to use a HTTP proxy. 4<keywords> 5HTTP 6HTTP GET 7HTTP NTLM auth 8HTTP proxy 9</keywords> 10</info> 11# Server-side 12<reply> 13 14<!-- no <data> in this test since we have NTLM from the start 15 16This is supposed to be returned when the server gets a first 17Authorization: NTLM line passed-in from the client --> 18 19<data1001> 20HTTP/1.1 401 Now gimme that second request of crap 21Server: Microsoft-IIS/5.0 22Content-Type: text/html; charset=iso-8859-1 23Content-Length: 34 24WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 25 26This is not the real page either! 27</data1001> 28 29# This is supposed to be returned when the server gets the second 30# Authorization: NTLM line passed-in from the client 31<data1002> 32HTTP/1.1 200 Things are fine in server land swsclose 33Server: Microsoft-IIS/5.0 34Content-Type: text/html; charset=iso-8859-1 35Content-Length: 32 36 37Finally, this is the real page! 38</data1002> 39 40<datacheck> 41HTTP/1.1 401 Now gimme that second request of crap 42Server: Microsoft-IIS/5.0 43Content-Type: text/html; charset=iso-8859-1 44Content-Length: 34 45WWW-Authenticate: NTLM TlRMTVNTUAACAAAAAgACADAAAAAGgoEAc51AYVDgyNcAAAAAAAAAAG4AbgAyAAAAQ0MCAAQAQwBDAAEAEgBFAEwASQBTAEEAQgBFAFQASAAEABgAYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAwAsAGUAbABpAHMAYQBiAGUAdABoAC4AYwBjAC4AaQBjAGUAZABlAHYALgBuAHUAAAAAAA== 46 47HTTP/1.1 200 Things are fine in server land swsclose 48Server: Microsoft-IIS/5.0 49Content-Type: text/html; charset=iso-8859-1 50Content-Length: 32 51 52Finally, this is the real page! 53</datacheck> 54 55</reply> 56 57# Client-side 58<client> 59<features> 60NTLM 61!SSPI 62</features> 63<server> 64http 65</server> 66 <name> 67HTTP with server NTLM authorization using a proxy 68 </name> 69 <setenv> 70# we force our own host name, in order to make the test machine independent 71CURL_GETHOSTNAME=curlhost 72# we try to use the LD_PRELOAD hack, if not a debug build 73LD_PRELOAD=%PWD/libtest/.libs/libhostname.so 74 </setenv> 75 <command> 76http://%HOSTIP:%HTTPPORT/1215 -u testuser:testpass --ntlm --proxy http://%HOSTIP:%HTTPPORT 77</command> 78<precheck> 79chkhostname curlhost 80</precheck> 81</client> 82 83# Verify data after the test has been "shot" 84<verify> 85<strip> 86^User-Agent:.* 87</strip> 88<protocol> 89GET http://%HOSTIP:%HTTPPORT/1215 HTTP/1.1 90Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA= 91User-Agent: curl/7.30.0-DEV 92Host: %HOSTIP:%HTTPPORT 93Accept: */* 94Proxy-Connection: Keep-Alive 95 96GET http://%HOSTIP:%HTTPPORT/1215 HTTP/1.1 97Authorization: NTLM TlRMTVNTUAADAAAAGAAYAEAAAACeAJ4AWAAAAAAAAAD2AAAACAAIAPYAAAAIAAgA/gAAAAAAAAAAAAAABoKBAFuu0VIvKeMdPwjDPk7eAnwxMjM0NTY3OC1uDhL9DbZXt27JqdXMDkABAQAAAAAAAACAPtXesZ0BMTIzNDU2NzgAAAAAAgAEAEMAQwABABIARQBMAEkAUwBBAEIARQBUAEgABAAYAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAMALABlAGwAaQBzAGEAYgBlAHQAaAAuAGMAYwAuAGkAYwBlAGQAZQB2AC4AbgB1AAAAAAAAAAAAdGVzdHVzZXJjdXJsaG9zdA== 98User-Agent: curl/7.30.0-DEV 99Host: %HOSTIP:%HTTPPORT 100Accept: */* 101Proxy-Connection: Keep-Alive 102 103</protocol> 104</verify> 105</testcase> 106