test1514 833 B

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