test98 773 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/%TESTNUMBER
  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. <protocol>
  40. PUT /%TESTNUMBER HTTP/1.1
  41. Host: %HOSTIP:%HTTPPORT
  42. User-Agent: curl/%VERSION
  43. Accept: */*
  44. Content-Length: 14
  45. Expect: 100-continue
  46. data on stdin
  47. </protocol>
  48. </verify>
  49. </testcase>