test500 777 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <testcase>
  2. #
  3. # Server-side
  4. <reply name="1">
  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. -foo-
  17. </data>
  18. </reply>
  19. # Client-side
  20. <client>
  21. <server>
  22. http
  23. </server>
  24. # tool is what to use instead of 'curl'
  25. <tool>
  26. lib500
  27. </tool>
  28. <name>
  29. simple libcurl HTTP GET tool
  30. </name>
  31. <command>
  32. http://%HOSTIP:%HTTPPORT/500 log/ip500
  33. </command>
  34. </client>
  35. #
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <file name="log/ip500" mode="text">
  39. IP: %HOSTIP
  40. </file>
  41. <protocol>
  42. GET /500 HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Accept: */*
  45. </protocol>
  46. </verify>
  47. </testcase>