test287 882 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP CONNECT
  6. HTTP proxy
  7. proxytunnel
  8. </keywords>
  9. </info>
  10. # Server-side
  11. <reply>
  12. # this is returned first since we get no proxy-auth
  13. <data nocheck="1">
  14. HTTP/1.1 405 Method Not Allowed swsclose
  15. And you should ignore this data.
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <name>
  24. HTTP proxy CONNECT with custom User-Agent header
  25. </name>
  26. <command>
  27. http://test.remote.server.com:287/path/287 -H "User-Agent: looser/2007" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel
  28. </command>
  29. </client>
  30. # Verify data after the test has been "shot"
  31. <verify>
  32. <protocol>
  33. CONNECT test.remote.server.com:287 HTTP/1.0
  34. Host: test.remote.server.com:287
  35. Proxy-Connection: Keep-Alive
  36. User-Agent: looser/2007
  37. </protocol>
  38. # CURLE_RECV_ERROR
  39. <errorcode>
  40. 56
  41. </errorcode>
  42. <stdout>
  43. HTTP/1.1 405 Method Not Allowed swsclose
  44. </stdout>
  45. </verify>
  46. </testcase>