test162 1.2 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. </features>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP GET asking for --proxy-ntlm when some other authentication is required
  33. </name>
  34. <command>
  35. http://%HOSTIP:%HTTPPORT/162 --proxy http://%HOSTIP:%HTTPPORT --proxy-user foo:bar --proxy-ntlm --fail
  36. </command>
  37. </client>
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <strip>
  41. ^User-Agent: curl/.*
  42. </strip>
  43. <protocol>
  44. GET http://%HOSTIP:%HTTPPORT/162 HTTP/1.1
  45. Proxy-Authorization: NTLM TlRMTVNTUAABAAAABoIIAAAAAAAAAAAAAAAAAAAAAAA=
  46. User-Agent: curl/7.8.1-pre3 (sparc-sun-solaris2.7) libcurl 7.8.1-pre3 (OpenSSL 0.9.6a) (krb4 enabled)
  47. Host: %HOSTIP:%HTTPPORT
  48. Accept: */*
  49. Proxy-Connection: Keep-Alive
  50. </protocol>
  51. <errorcode>
  52. 22
  53. </errorcode>
  54. </verify>
  55. </testcase>