test1540 906 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. CURLPAUSE_RECV
  7. chunked Transfer-Encoding
  8. Trailer:
  9. DELAY
  10. </keywords>
  11. </info>
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.1 200 OK swsclose
  16. Transfer-Encoding: chunked
  17. Trailer: MyCoolTrailerHeader
  18. 4
  19. data
  20. 5
  21. d474
  22. 0
  23. MyCoolTrailerHeader: amazingtrailer
  24. </data>
  25. <datacheck>
  26. HTTP/1.1 200 OK swsclose
  27. Transfer-Encoding: chunked
  28. Trailer: MyCoolTrailerHeader
  29. Got bytes but pausing!
  30. datad474
  31. MyCoolTrailerHeader: amazingtrailer
  32. </datacheck>
  33. <servercmd>
  34. writedelay: 10
  35. </servercmd>
  36. </reply>
  37. # Client-side
  38. <client>
  39. <server>
  40. http
  41. </server>
  42. <tool>
  43. lib%TESTNUMBER
  44. </tool>
  45. <name>
  46. chunked with trailers and pausing the receive
  47. </name>
  48. <command>
  49. http://%HOSTIP:%HTTPPORT/%TESTNUMBER
  50. </command>
  51. </client>
  52. # Verify data after the test has been "shot"
  53. <verify>
  54. <protocol>
  55. GET /%TESTNUMBER HTTP/1.1
  56. Host: %HOSTIP:%HTTPPORT
  57. Accept: */*
  58. </protocol>
  59. </verify>
  60. </testcase>