test1429 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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 999 OK
  12. Date: Tue, 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 999 response code
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --write-out '%{response_code}'
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <stdout nonewline="yes">
  41. HTTP/1.1 999 OK
  42. Date: Tue, 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. 999
  53. </stdout>
  54. <protocol>
  55. GET /%TESTNUMBER HTTP/1.1
  56. Host: %HOSTIP:%HTTPPORT
  57. User-Agent: curl/%VERSION
  58. Accept: */*
  59. </protocol>
  60. </verify>
  61. </testcase>