test287 982 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER -H "User-Agent: looser/2015" --proxy http://%HOSTIP:%HTTPPORT --proxytunnel --proxy-header "User-Agent: looser/2007"
  27. </command>
  28. <features>
  29. proxy
  30. </features>
  31. </client>
  32. # Verify data after the test has been "shot"
  33. <verify>
  34. <protocol>
  35. CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
  36. Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT
  37. Proxy-Connection: Keep-Alive
  38. User-Agent: looser/2007
  39. </protocol>
  40. # CURLE_RECV_ERROR
  41. <errorcode>
  42. 56
  43. </errorcode>
  44. <stdout>
  45. HTTP/1.1 405 Method Not Allowed swsclose
  46. </stdout>
  47. </verify>
  48. </testcase>