test1333 743 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. chunked Transfer-Encoding
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Accept-Ranges: bytes
  16. Content-Length: 6
  17. Connection: close
  18. -foo-
  19. </data>
  20. </reply>
  21. #
  22. # Client-side
  23. <client>
  24. <server>
  25. http
  26. </server>
  27. <name>
  28. HTTP POST zero length, chunked-encoded
  29. </name>
  30. <command>
  31. -d "" --header "Transfer-Encoding: chunked" http://%HOSTIP:%HTTPPORT/1333
  32. </command>
  33. </client>
  34. #
  35. # Verify data after the test has been "shot"
  36. <verify>
  37. <strip>
  38. ^User-Agent:.*
  39. </strip>
  40. <protocol>
  41. POST /1333 HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. Accept: */*
  44. Transfer-Encoding: chunked
  45. Content-Type: application/x-www-form-urlencoded
  46. 0
  47. </protocol>
  48. </verify>
  49. </testcase>