test522 776 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. CURLOPT_PORT
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data nocheck="yes">
  13. HTTP/1.1 200 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  17. ETag: "21025-dc7-39462498"
  18. Accept-Ranges: bytes
  19. Content-Length: 6
  20. hello
  21. </data>
  22. </reply>
  23. #
  24. # Client-side
  25. <client>
  26. <server>
  27. http
  28. </server>
  29. <tool>
  30. lib521
  31. </tool>
  32. <name>
  33. HTTP GET with CURLOPT_PORT
  34. </name>
  35. <command>
  36. http://%HOSTIP/522 %HTTPPORT
  37. </command>
  38. </client>
  39. #
  40. # Verify data after the test has been "shot"
  41. <verify>
  42. <strip>
  43. ^User-Agent:.*
  44. </strip>
  45. <protocol>
  46. GET /522 HTTP/1.1
  47. Authorization: Basic eHh4Onl5eQ==
  48. Host: %HOSTIP:%HTTPPORT
  49. Accept: */*
  50. </protocol>
  51. <stdout mode="text">
  52. hello
  53. </stdout>
  54. </verify>
  55. </testcase>