test1124 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. compressed
  7. Transfer-Encoding
  8. chunked Transfer-Encoding
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data base64="yes">
  15. SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDI0IDIxOjU2OjUzIEdNVA0KU2Vy
  16. dmVyOiBTb21ldGhpbmctVEUtZnJpZW5kbHkvMC4xDQpWYXJ5OiBBY2NlcHQtRW5jb2RpbmcNCkNv
  17. bnRlbnQtVHlwZTogdGV4dC9odG1sOyBjaGFyc2V0PUlTTy04ODU5LTENClRyYW5zZmVyLUVuY29k
  18. aW5nOiBnemlwLCBjaHVua2VkDQoNCjE0DQofiwgIeZ6rQQADbGFsYWxhAMvJzA0KMTgNCktVMORS
  19. yAHRRlwKEIYxFwAKAnFgGAAAAA0KMA0KDQo=
  20. </data>
  21. <datacheck>
  22. HTTP/1.1 200 OK
  23. Date: Mon, 29 Nov 2024 21:56:53 GMT
  24. Server: Something-TE-friendly/0.1
  25. Vary: Accept-Encoding
  26. Content-Type: text/html; charset=ISO-8859-1
  27. Transfer-Encoding: gzip, chunked
  28. line 1
  29. line 2
  30. line 3
  31. </datacheck>
  32. </reply>
  33. #
  34. # Client-side
  35. <client>
  36. <features>
  37. libz
  38. </features>
  39. <server>
  40. http
  41. </server>
  42. <name>
  43. HTTP GET gzip+chunked transfer-encoded content
  44. </name>
  45. <command>
  46. http://%HOSTIP:%HTTPPORT/1124 --tr-encoding
  47. </command>
  48. </client>
  49. #
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <strip>
  53. ^User-Agent:.*
  54. </strip>
  55. <protocol>
  56. GET /1124 HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. Accept: */*
  59. Connection: TE
  60. TE: gzip
  61. </protocol>
  62. </verify>
  63. </testcase>