2
0

test1514 730 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP POST
  6. Content-Length
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data nocheck="yes">
  12. HTTP/1.1 411 Length Required
  13. Date: Sun, 19 Jan 2014 18:50:58 GMT
  14. Server: test-server/fake swsclose
  15. Connection: close
  16. </data>
  17. </reply>
  18. # Client-side
  19. <client>
  20. <server>
  21. http
  22. </server>
  23. <tool>
  24. lib1514
  25. </tool>
  26. <name>
  27. HTTP POST with read callback and unknown data size
  28. </name>
  29. <command>
  30. http://%HOSTIP:%HTTPPORT/1514
  31. </command>
  32. </client>
  33. # Verify data after the test has been "shot"
  34. <verify>
  35. # Content-Length header is not present
  36. <protocol>
  37. POST /1514 HTTP/1.1
  38. Host: %HOSTIP:%HTTPPORT
  39. Accept: */*
  40. Content-Type: application/x-www-form-urlencoded
  41. Expect: 100-continue
  42. </protocol>
  43. </verify>
  44. </testcase>