test82 1020 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. HTTP proxy Basic auth
  8. HTTP proxy NTLM auth
  9. </keywords>
  10. </info>
  11. # Server-side
  12. <reply>
  13. <data>
  14. HTTP/1.1 407 We only deal with NTLM my friend
  15. Server: Microsoft-IIS/5.0
  16. Content-Type: text/html; charset=iso-8859-1
  17. Content-Length: 34
  18. Proxy-Authenticate: NTLM
  19. This is not the real page either!
  20. </data>
  21. </reply>
  22. # Client-side
  23. <client>
  24. <features>
  25. </features>
  26. <server>
  27. http
  28. </server>
  29. <name>
  30. HTTP with proxy requiring NTLM, but we send Basic
  31. </name>
  32. <command>
  33. http://%HOSTIP:%HTTPPORT/82 --proxy-user testuser:testpass -x http://%HOSTIP:%HTTPPORT
  34. </command>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <strip>
  39. ^User-Agent:.*
  40. </strip>
  41. <protocol>
  42. GET http://%HOSTIP:%HTTPPORT/82 HTTP/1.1
  43. Proxy-Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
  44. User-Agent: curl/7.10.6-pre1 (i686-pc-linux-gnu) libcurl/7.10.6-pre1 OpenSSL/0.9.7a ipv6 zlib/1.1.3
  45. Host: %HOSTIP:%HTTPPORT
  46. Accept: */*
  47. Proxy-Connection: Keep-Alive
  48. </protocol>
  49. </verify>
  50. </testcase>