test287 921 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. <connect nocheck="yes">
  13. HTTP/1.1 405 Method Not Allowed swsclose
  14. And you should ignore this data.
  15. </connect>
  16. </reply>
  17. # Client-side
  18. <client>
  19. <server>
  20. http
  21. </server>
  22. <name>
  23. HTTP proxy CONNECT with custom User-Agent header
  24. </name>
  25. <command>
  26. http://test.remote.example.com.287:%HTTPPORT/path/287 -H "User-Agent: looser/2015" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel --proxy-header "User-Agent: looser/2007"
  27. </command>
  28. </client>
  29. # Verify data after the test has been "shot"
  30. <verify>
  31. <protocol>
  32. CONNECT test.remote.example.com.287:%HTTPPORT HTTP/1.1
  33. Host: test.remote.example.com.287:%HTTPPORT
  34. Proxy-Connection: Keep-Alive
  35. User-Agent: looser/2007
  36. </protocol>
  37. # CURLE_RECV_ERROR
  38. <errorcode>
  39. 56
  40. </errorcode>
  41. <stdout>
  42. HTTP/1.1 405 Method Not Allowed swsclose
  43. </stdout>
  44. </verify>
  45. </testcase>