test1411 870 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. PUT
  6. </keywords>
  7. </info>
  8. <reply>
  9. <data>
  10. HTTP/1.1 200 OK
  11. Date: Thu, 09 Nov 2010 14:49:00 GMT
  12. Server: test-server/fake
  13. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  14. ETag: "21025-dc7-39462498"
  15. Accept-Ranges: bytes
  16. Content-Length: 6
  17. Connection: close
  18. Content-Type: text/html
  19. Funny-head: yesyes
  20. -foo-
  21. </data>
  22. </reply>
  23. #
  24. # Client-side
  25. <client>
  26. <server>
  27. http
  28. </server>
  29. # make sure there's no Expect: 100-continue when there's no file to send!
  30. <name>
  31. HTTP with zero size file PUT
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/1411 -T log/empty1411
  35. </command>
  36. # create an empty file
  37. <file name="log/empty1411">
  38. </file>
  39. </client>
  40. #
  41. # Verify data after the test has been "shot"
  42. <verify>
  43. <strip>
  44. ^User-Agent:.*
  45. </strip>
  46. <protocol>
  47. PUT /1411 HTTP/1.1
  48. Host: %HOSTIP:%HTTPPORT
  49. Accept: */*
  50. Content-Length: 0
  51. </protocol>
  52. </verify>
  53. </testcase>