2
0

test376 964 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # Crafted to cause error 18
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 200 OK swsclose
  13. Date: Tue, 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: 75
  19. Connection: close
  20. Content-Type: text/html
  21. Funny-head: yesyes
  22. -foo-
  23. </data>
  24. </reply>
  25. #
  26. # Client-side
  27. <client>
  28. <server>
  29. http
  30. </server>
  31. <name>
  32. HTTP GET
  33. </name>
  34. <command option="no-output">
  35. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o log/save-%TESTNUMBER --remove-on-error
  36. </command>
  37. </client>
  38. #
  39. # Verify data after the test has been "shot". hyper doesn't do error 18
  40. <verify>
  41. <errorcode>
  42. %if hyper
  43. 56
  44. %else
  45. 18
  46. %endif
  47. </errorcode>
  48. <protocol>
  49. GET /%TESTNUMBER HTTP/1.1
  50. Host: %HOSTIP:%HTTPPORT
  51. User-Agent: curl/%VERSION
  52. Accept: */*
  53. </protocol>
  54. # the file should be empty now
  55. <file name="log/save-%TESTNUMBER">
  56. </file>
  57. </verify>
  58. </testcase>