2
0

test162 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. HTTP proxy NTLM auth
  8. FAILURE
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data1001 nocheck="yes">
  14. HTTP/1.0 407 BAD BOY
  15. Proxy-Authenticate: Basic realm="Squid proxy-caching web server"
  16. Server: swsclose
  17. Content-Type: text/html
  18. Even though it's the response code that triggers authentication, we're
  19. using NTLM and the server isn't, so we should fail. We know the server
  20. isn't because there's no Proxy-Authorization: NTLM header
  21. </data1001>
  22. </reply>
  23. # Client-side
  24. <client>
  25. <features>
  26. NTLM
  27. SSL
  28. !SSPI
  29. proxy
  30. </features>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. HTTP GET asking for --proxy-ntlm when some other authentication is required
  36. </name>
  37. <command>
  38. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
  39. </command>
  40. </client>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
  45. Host: %HOSTIP:%HTTPPORT
  46. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  47. User-Agent: curl/%VERSION
  48. Accept: */*
  49. Proxy-Connection: Keep-Alive
  50. </protocol>
  51. <errorcode>
  52. 22
  53. </errorcode>
  54. </verify>
  55. </testcase>