test523 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP proxy
  7. CURLOPT_PORT
  8. CURLOPT_PROXY
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data nocheck="yes">
  15. HTTP/1.1 200 OK swsclose
  16. Date: Tue, 09 Nov 2010 14:49:00 GMT
  17. Server: test-server/fake
  18. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  19. ETag: "21025-dc7-39462498"
  20. Accept-Ranges: bytes
  21. Content-Length: 6
  22. hello
  23. </data>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. <tool>
  32. lib%TESTNUMBER
  33. </tool>
  34. <name>
  35. HTTP GET with proxy and CURLOPT_PORT
  36. </name>
  37. # first URL then proxy
  38. <command>
  39. http://www.example.com:999/%TESTNUMBER http://%HOSTIP:%HTTPPORT
  40. </command>
  41. <features>
  42. proxy
  43. </features>
  44. </client>
  45. #
  46. # Verify data after the test has been "shot"
  47. <verify>
  48. <protocol>
  49. GET http://www.example.com:19999/%TESTNUMBER HTTP/1.1
  50. Host: www.example.com:19999
  51. Authorization: Basic eHh4Onl5eQ==
  52. Accept: */*
  53. Proxy-Connection: Keep-Alive
  54. </protocol>
  55. <stdout>
  56. hello
  57. </stdout>
  58. </verify>
  59. </testcase>