test1429 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. HTTP/0.9
  7. </keywords>
  8. </info>
  9. <reply>
  10. <data nocheck="yes">
  11. HTTP/1.1 2345 OK
  12. Date: Thu, 09 Nov 2010 14:49:00 GMT
  13. Server: test-server/fake
  14. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  15. ETag: "21025-dc7-39462498"
  16. Accept-Ranges: bytes
  17. Content-Length: 6
  18. Connection: close
  19. Content-Type: text/html
  20. Funny-head: yesyes
  21. -foo-
  22. </data>
  23. </reply>
  24. #
  25. # Client-side
  26. <client>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP GET with 4-digit response code
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/1429 --write-out '%{response_code}' --http0.9
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <stdout nonewline="yes">
  41. HTTP/1.1 2345 OK
  42. Date: Thu, 09 Nov 2010 14:49:00 GMT
  43. Server: test-server/fake
  44. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  45. ETag: "21025-dc7-39462498"
  46. Accept-Ranges: bytes
  47. Content-Length: 6
  48. Connection: close
  49. Content-Type: text/html
  50. Funny-head: yesyes
  51. -foo-
  52. 234
  53. </stdout>
  54. <strip>
  55. ^User-Agent:.*
  56. </strip>
  57. <protocol>
  58. GET /1429 HTTP/1.1
  59. Host: %HOSTIP:%HTTPPORT
  60. Accept: */*
  61. </protocol>
  62. </verify>
  63. </testcase>