test221 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. compressed
  7. FAILURE
  8. </keywords>
  9. </info>
  10. #
  11. # Server-side
  12. <reply>
  13. <data base64="yes">
  14. SFRUUC8xLjEgMjAwIE9LDQpEYXRlOiBNb24sIDI5IE5vdiAyMDA0IDIxOjU2OjUzIEdNVA0KU2Vy
  15. dmVyOiBBcGFjaGUvMS4zLjMxIChEZWJpYW4gR05VL0xpbnV4KSBtb2RfZ3ppcC8xLjMuMjYuMWEg
  16. UEhQLzQuMy45LTEgbW9kX3NzbC8yLjguMjAgT3BlblNTTC8wLjkuN2QgbW9kX3BlcmwvMS4yOQ0K
  17. VmFyeTogQWNjZXB0LUVuY29kaW5nDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbDsgY2hhcnNldD1J
  18. U08tODg1OS0xDQpDb250ZW50LUVuY29kaW5nOiBnemlwDQpDb250ZW50LUxlbmd0aDogNDENCg0K
  19. CHmeq0EAA2xhbGFsYQDLycxLVTDkUsgB0UZcChCGMRcACgJxYBgAAAA=
  20. </data>
  21. # I removed the first three bytes of the gzip compressed contents
  22. <datacheck>
  23. HTTP/1.1 200 OK
  24. Date: Mon, 29 Nov 2004 21:56:53 GMT
  25. 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
  26. Vary: Accept-Encoding
  27. Content-Type: text/html; charset=ISO-8859-1
  28. Content-Encoding: gzip
  29. Content-Length: 41
  30. </datacheck>
  31. </reply>
  32. #
  33. # Client-side
  34. <client>
  35. <features>
  36. libz
  37. </features>
  38. <server>
  39. http
  40. </server>
  41. <name>
  42. HTTP GET gzip compressed content with broken gzip header
  43. </name>
  44. <command>
  45. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --compressed
  46. </command>
  47. </client>
  48. #
  49. # Verify data after the test has been "shot"
  50. <verify>
  51. <strippart>
  52. s/^Accept-Encoding: [a-zA-Z, ]*/Accept-Encoding: xxx/
  53. </strippart>
  54. <protocol>
  55. GET /%TESTNUMBER HTTP/1.1
  56. Host: %HOSTIP:%HTTPPORT
  57. User-Agent: curl/%VERSION
  58. Accept: */*
  59. Accept-Encoding: xxx
  60. </protocol>
  61. <errorcode>
  62. 61
  63. </errorcode>
  64. </verify>
  65. </testcase>