test220 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. compressed
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data base64="yes">
  13. SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDA0IDIxOjU2OjUzIEdNVA0KU2Vy
  14. dmVyOiBBcGFjaGUvMS4zLjMxIChEZWJpYW4gR05VL0xpbnV4KSBtb2RfZ3ppcC8xLjMuMjYuMWEg
  15. UEhQLzQuMy45LTEgbW9kX3NzbC8yLjguMjAgT3BlblNTTC8wLjkuN2QgbW9kX3BlcmwvMS4yOQ0K
  16. VmFyeTogQWNjZXB0LUVuY29kaW5nDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbDsgY2hhcnNldD1J
  17. U08tODg1OS0xDQpDb250ZW50LUVuY29kaW5nOiBHWklQDQpDb250ZW50LUxlbmd0aDogNDQNCg0K
  18. H4sICHmeq0EAA2xhbGFsYQDLycxLVTDkUsgB0UZcChCGMRcACgJxYBgAAAA=
  19. </data>
  20. <datacheck>
  21. HTTP/1.1 200 OK
  22. Date: Mon, 29 Nov 2004 21:56:53 GMT
  23. 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
  24. Vary: Accept-Encoding
  25. Content-Type: text/html; charset=ISO-8859-1
  26. Content-Encoding: GZIP
  27. Content-Length: 44
  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 compressed content
  44. </name>
  45. <command>
  46. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
  47. </command>
  48. </client>
  49. #
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <strippart>
  53. s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
  54. </strippart>
  55. <protocol>
  56. GET /%TESTNUMBER HTTP/1.1
  57. Host: %HOSTIP:%HTTPPORT
  58. User-Agent: curl/%VERSION
  59. Accept: */*
  60. Accept-Encoding: xxx
  61. </protocol>
  62. </verify>
  63. </testcase>