test718 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP CONNECT
  7. HTTP proxy
  8. proxytunnel
  9. HTTP proxy Digest auth
  10. </keywords>
  11. </info>
  12. # Server-side
  13. <reply>
  14. # this is returned first since we get no proxy-auth
  15. <connect>
  16. HTTP/1.1 407 Authorization Required to proxy me swsclose
  17. Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
  18. </connect>
  19. <datacheck>
  20. HTTP/1.1 407 Authorization Required to proxy me swsclose
  21. Proxy-Authenticate: Digest realm="weirdorealm", nonce="12345"
  22. </datacheck>
  23. </reply>
  24. # Client-side
  25. <client>
  26. <server>
  27. http
  28. </server>
  29. <features>
  30. !SSPI
  31. crypto
  32. proxy
  33. </features>
  34. <name>
  35. HTTP proxy CONNECT (no auth) with proxy returning 407 and closing
  36. </name>
  37. <command>
  38. http://test.remote.haxx.se.%TESTNUMBER:8990/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel
  39. </command>
  40. </client>
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <protocol>
  44. CONNECT test.remote.haxx.se.%TESTNUMBER:8990 HTTP/1.1
  45. Host: test.remote.haxx.se.%TESTNUMBER:8990
  46. User-Agent: curl/%VERSION
  47. Proxy-Connection: Keep-Alive
  48. </protocol>
  49. <errorcode>
  50. 56
  51. </errorcode>
  52. </verify>
  53. </testcase>