test218 869 B

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