test566 852 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data mode="text">
  12. HTTP/1.1 200 OK
  13. Date: Thu, 09 Nov 2010 14:49:00 GMT
  14. Server: test-server/fake
  15. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  16. ETag: "21025-dc7-39462498"
  17. Accept-Ranges: bytes
  18. Content-Length: 0
  19. Connection: close
  20. Content-Type: text/html
  21. Funny-head: yesyes
  22. </data>
  23. </reply>
  24. # Client-side
  25. <client>
  26. <server>
  27. http
  28. </server>
  29. # tool is what to use instead of 'curl'
  30. <tool>
  31. lib566
  32. </tool>
  33. <name>
  34. HTTP GET with CURLINFO_CONTENT_LENGTH_DOWNLOAD and 0 bytes transfer
  35. </name>
  36. <command>
  37. http://%HOSTIP:%HTTPPORT/566 log/ip566
  38. </command>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <file name="log/ip566" mode="text">
  44. CL: 0
  45. </file>
  46. <protocol>
  47. GET /566 HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. Accept: */*
  50. </protocol>
  51. </verify>
  52. </testcase>