test218 789 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP PUT
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.0 200 OK
  13. Server: test-server/fake
  14. Content-Type: text/html
  15. Content-Length: 6
  16. blaha
  17. </data>
  18. </reply>
  19. #
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. <name>
  26. HTTP PUT from a file but enforce chunked transfer-encoding
  27. </name>
  28. <command>
  29. -T log/file218 -H "Transfer-Encoding: chunked" http://%HOSTIP:%HTTPPORT/218
  30. </command>
  31. <file name="log/file218">
  32. just some tiny teeny contents
  33. </file>
  34. </client>
  35. #
  36. # Verify data after the test has been "shot"
  37. <verify>
  38. <strip>
  39. ^User-Agent:.*
  40. </strip>
  41. <protocol>
  42. PUT /218 HTTP/1.1
  43. Host: %HOSTIP:%HTTPPORT
  44. Accept: */*
  45. Transfer-Encoding: chunked
  46. Expect: 100-continue
  47. 1e
  48. just some tiny teeny contents
  49. 0
  50. </protocol>
  51. </verify>
  52. </testcase>