test1171 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. U08tODg1OS0xDQpUcmFuc2Zlci1FbmNvZGluZzogZ3ppcCwgY2h1bmtlZA0KDQoyYw0KH4sICHme
  19. q0EAA2xhbGFsYQDLycxLVTDkUsgB0UZcChCGMRcACgJxYBgAAAANCjANCg0K
  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, 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 transfer-encoding with blanked Connection:
  44. </name>
  45. <command>
  46. http://%HOSTIP:%HTTPPORT/%TESTNUMBER --tr-encoding -H "Connection;"
  47. </command>
  48. </client>
  49. #
  50. # Verify data after the test has been "shot"
  51. <verify>
  52. <protocol>
  53. GET /%TESTNUMBER HTTP/1.1
  54. Host: %HOSTIP:%HTTPPORT
  55. User-Agent: curl/%VERSION
  56. Accept: */*
  57. Connection: TE
  58. TE: gzip
  59. </protocol>
  60. </verify>
  61. </testcase>