test98 712 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #
  2. # Server-side
  3. <reply>
  4. <data>
  5. HTTP/1.0 200 OK
  6. Server: test-server/fake
  7. Content-Type: text/html
  8. Content-Length: 6
  9. blaha
  10. </data>
  11. </reply>
  12. #
  13. # Client-side
  14. <client>
  15. <server>
  16. http
  17. </server>
  18. <name>
  19. HTTP PUT from stdin with set size, disabling chunked transfer-encoding
  20. </name>
  21. <command>
  22. -T - -H "Transfer-Encoding:" -H "Content-Length: 14" http://%HOSTIP:%HOSTPORT/98
  23. </command>
  24. <stdin>
  25. data on stdin
  26. </stdin>
  27. </client>
  28. #
  29. # Verify data after the test has been "shot"
  30. <verify>
  31. <strip>
  32. ^User-Agent:.*
  33. </strip>
  34. <protocol>
  35. PUT /98 HTTP/1.1
  36. Host: 127.0.0.1:8999
  37. Pragma: no-cache
  38. Accept: */*
  39. Content-Length: 14
  40. Expect: 100-continue
  41. data on stdin
  42. </protocol>
  43. </verify>