test514 795 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply>
  5. <data mode="text">
  6. HTTP/1.1 200 OK
  7. Date: Thu, 09 Nov 2010 14:49:00 GMT
  8. Server: test-server/fake
  9. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  10. ETag: "21025-dc7-39462498"
  11. Accept-Ranges: bytes
  12. Content-Length: 6
  13. Connection: close
  14. Content-Type: text/html
  15. Funny-head: yesyes
  16. </data>
  17. </reply>
  18. #
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. <tool>
  25. lib514
  26. </tool>
  27. <name>
  28. First set options to POST and then to make HEAD
  29. </name>
  30. # the 1s post-command delay helps to prevent a spurious failure on s390
  31. <command delay="1">
  32. http://%HOSTIP:%HTTPPORT/514
  33. </command>
  34. </client>
  35. #
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <strip>
  39. ^User-Agent:.*
  40. </strip>
  41. <protocol>
  42. HEAD /514 HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Accept: */*
  45. </protocol>
  46. </verify>
  47. </testcase>