test218 737 B

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