test379 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # Crafted to cause error
  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. <file name="%LOGDIR/save">
  29. exists before command runs
  30. </file>
  31. <server>
  32. http
  33. </server>
  34. <name>
  35. --remove-on-error with --no-clobber and an added number
  36. </name>
  37. <command option="no-output">
  38. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -o %LOGDIR/save --remove-on-error --no-clobber
  39. </command>
  40. </client>
  41. #
  42. # Verify data after the test has been "shot". hyper doesn't do error 18
  43. <verify>
  44. <errorcode>
  45. %if hyper
  46. 56
  47. %else
  48. 18
  49. %endif
  50. </errorcode>
  51. <protocol>
  52. GET /%TESTNUMBER HTTP/1.1
  53. Host: %HOSTIP:%HTTPPORT
  54. User-Agent: curl/%VERSION
  55. Accept: */*
  56. </protocol>
  57. # this file should be untouched
  58. <file name="%LOGDIR/save">
  59. exists before command runs
  60. </file>
  61. # the file should be empty now
  62. <file2 name="%LOGDIR/save.1">
  63. </file2>
  64. </verify>
  65. </testcase>