test98 763 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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 stdin with set size, disabling chunked transfer-encoding
  28. </name>
  29. <command>
  30. -T - -H "Transfer-Encoding:" -H "Content-Length: 14" http://%HOSTIP:%HTTPPORT/98
  31. </command>
  32. <stdin>
  33. data on stdin
  34. </stdin>
  35. </client>
  36. #
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^User-Agent:.*
  41. </strip>
  42. <protocol>
  43. PUT /98 HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. Accept: */*
  46. Content-Length: 14
  47. Expect: 100-continue
  48. data on stdin
  49. </protocol>
  50. </verify>
  51. </testcase>