test82 938 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. proxy
  26. </features>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP with proxy requiring NTLM, but we send Basic
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --proxy-user testuser:testpass -x http://%HOSTIP:%HTTPPORT
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <protocol>
  40. GET http://%HOSTIP:%HTTPPORT/%TESTNUMBER HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. Proxy-Authorization: Basic dGVzdHVzZXI6dGVzdHBhc3M=
  43. User-Agent: curl/%VERSION
  44. Accept: */*
  45. Proxy-Connection: Keep-Alive
  46. </protocol>
  47. </verify>
  48. </testcase>