test1514 879 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. lib%TESTNUMBER
  26. </tool>
  27. <name>
  28. HTTP POST with read callback and unknown data size
  29. </name>
  30. <command>
  31. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  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 /%TESTNUMBER 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>