test523 929 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: Thu, 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. lib523
  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/523 http://%HOSTIP:%HTTPPORT
  40. </command>
  41. </client>
  42. #
  43. # Verify data after the test has been "shot"
  44. <verify>
  45. <strip>
  46. ^User-Agent:.*
  47. </strip>
  48. <protocol>
  49. GET HTTP://www.example.com:19999/523 HTTP/1.1
  50. Authorization: Basic eHh4Onl5eQ==
  51. Host: www.example.com:19999
  52. Accept: */*
  53. Proxy-Connection: Keep-Alive
  54. </protocol>
  55. <stdout>
  56. hello
  57. </stdout>
  58. </verify>
  59. </testcase>