test217 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP CONNECT
  7. HTTP proxy
  8. proxytunnel
  9. followlocation
  10. --write-out
  11. </keywords>
  12. </info>
  13. # Server-side
  14. <reply>
  15. # this is returned first since we get no proxy-auth
  16. <connect nocheck="yes">
  17. HTTP/1.1 405 Method Not Allowed swsclose
  18. And you should ignore this data.
  19. </connect>
  20. </reply>
  21. # Client-side
  22. <client>
  23. <server>
  24. http
  25. </server>
  26. <name>
  27. HTTP proxy CONNECT to proxy returning 405
  28. </name>
  29. <command>
  30. http://test.remote.example.com.%TESTNUMBER:%HTTPPORT/path/%TESTNUMBER0002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n"
  31. </command>
  32. <features>
  33. proxy
  34. </features>
  35. </client>
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <protocol>
  39. CONNECT test.remote.example.com.%TESTNUMBER:%HTTPPORT HTTP/1.1
  40. Host: test.remote.example.com.%TESTNUMBER:%HTTPPORT
  41. User-Agent: curl/%VERSION
  42. Proxy-Connection: Keep-Alive
  43. </protocol>
  44. # CURLE_RECV_ERROR
  45. <errorcode>
  46. 56
  47. </errorcode>
  48. <stdout>
  49. HTTP/1.1 405 Method Not Allowed swsclose
  50. 000 405
  51. </stdout>
  52. </verify>
  53. </testcase>