test1122 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. compressed
  7. Transfer-Encoding
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data base64="yes">
  14. SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDA0IDIxOjU2OjUzIEdNVA0KU2Vy
  15. dmVyOiBBcGFjaGUvMS4zLjMxIChEZWJpYW4gR05VL0xpbnV4KSBtb2RfZ3ppcC8xLjMuMjYuMWEg
  16. UEhQLzQuMy45LTEgbW9kX3NzbC8yLjguMjAgT3BlblNTTC8wLjkuN2QgbW9kX3BlcmwvMS4yOQ0K
  17. VmFyeTogQWNjZXB0LUVuY29kaW5nDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbDsgY2hhcnNldD1J
  18. U08tODg1OS0xDQpUcmFuc2Zlci1FbmNvZGluZzogZ3ppcA0KQ29udGVudC1MZW5ndGg6IDQ0DQoN
  19. Ch+LCAh5nqtBAANsYWxhbGEAy8nMS1Uw5FLIAdFGXAoQhjEXAAoCcWAYAAAA
  20. </data>
  21. <datacheck>
  22. HTTP/1.1 200 OK
  23. Date: Mon, 29 Nov 2004 21:56:53 GMT
  24. Server: Apache/1.3.31 (Debian GNU/Linux) mod_gzip/1.3.26.1a PHP/4.3.9-1 mod_ssl/2.8.20 OpenSSL/0.9.7d mod_perl/1.29
  25. Vary: Accept-Encoding
  26. Content-Type: text/html; charset=ISO-8859-1
  27. Transfer-Encoding: gzip
  28. Content-Length: 44
  29. line 1
  30. line 2
  31. line 3
  32. </datacheck>
  33. </reply>
  34. #
  35. # Client-side
  36. <client>
  37. <features>
  38. libz
  39. </features>
  40. <server>
  41. http
  42. </server>
  43. <name>
  44. HTTP GET gzip transfer-encoded content
  45. </name>
  46. <command>
  47. http://%HOSTIP:%HTTPPORT/1122 --tr-encoding
  48. </command>
  49. </client>
  50. #
  51. # Verify data after the test has been "shot"
  52. <verify>
  53. <strip>
  54. ^User-Agent:.*
  55. </strip>
  56. <protocol>
  57. GET /1122 HTTP/1.1
  58. Host: %HOSTIP:%HTTPPORT
  59. Accept: */*
  60. Connection: TE
  61. TE: gzip
  62. </protocol>
  63. </verify>
  64. </testcase>