test217 993 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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.217:%HTTPPORT/path/2170002 --proxy http://%HOSTIP:%HTTPPORT --proxytunnel -w "%{http_code} %{http_connect}\n"
  31. </command>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. <strip>
  36. ^User-Agent: curl/.*
  37. </strip>
  38. <protocol>
  39. CONNECT test.remote.example.com.217:%HTTPPORT HTTP/1.1
  40. Host: test.remote.example.com.217:%HTTPPORT
  41. Proxy-Connection: Keep-Alive
  42. </protocol>
  43. # CURLE_RECV_ERROR
  44. <errorcode>
  45. 56
  46. </errorcode>
  47. <stdout>
  48. HTTP/1.1 405 Method Not Allowed swsclose
  49. 000 405
  50. </stdout>
  51. </verify>
  52. </testcase>