test1613 784 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP proxy
  6. --request-target
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Sat, 29 Feb 2020 16:10:44 GMT
  15. Server: Blafasel/1.1
  16. Last-Modified: Sat, 29 Feb 2020 16:10:44 GMT
  17. Content-Length: 0
  18. Connection: close
  19. Content-Type: text/html
  20. </data>
  21. </reply>
  22. #
  23. # Client-side
  24. <client>
  25. <server>
  26. http
  27. </server>
  28. <name>
  29. Send "OPTIONS *" with --request-target to a proxy
  30. </name>
  31. <features>
  32. proxy
  33. </features>
  34. <command>
  35. --request-target '*' -X OPTIONS --proxy http://%HOSTIP:%HTTPPORT/ -H "Testno: %TESTNUMBER" http://www.example.org/
  36. </command>
  37. </client>
  38. <verify>
  39. <protocol>
  40. OPTIONS * HTTP/1.1
  41. Host: www.example.org
  42. User-Agent: curl/%VERSION
  43. Accept: */*
  44. Proxy-Connection: Keep-Alive
  45. Testno: %TESTNUMBER
  46. </protocol>
  47. </verify>
  48. </testcase>