test514 847 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP HEAD
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  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: 6
  19. Connection: close
  20. Content-Type: text/html
  21. Funny-head: yesyes
  22. </data>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. http
  29. </server>
  30. <tool>
  31. lib514
  32. </tool>
  33. <name>
  34. First set options to POST and then to make HEAD
  35. </name>
  36. # the 1s post-command delay helps to prevent a spurious failure on s390
  37. <command delay="1">
  38. http://%HOSTIP:%HTTPPORT/514
  39. </command>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot"
  43. <verify>
  44. <strip>
  45. ^User-Agent:.*
  46. </strip>
  47. <protocol>
  48. HEAD /514 HTTP/1.1
  49. Host: %HOSTIP:%HTTPPORT
  50. Accept: */*
  51. </protocol>
  52. </verify>
  53. </testcase>