test328 837 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. Content-Encoding
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. HTTP/1.1 200 OK
  13. Date: Tue, 09 Nov 2010 14:49:00 GMT
  14. Content-Type: text/html
  15. Content-Encoding: none
  16. Content-Length: 38
  17. Q- What did 0 say to 8? A- Nice Belt!
  18. </data>
  19. </reply>
  20. # Client-side
  21. <client>
  22. <server>
  23. http
  24. </server>
  25. # we're actually more interested in any compression support but this is the
  26. # best we can do right now
  27. <features>
  28. libz
  29. </features>
  30. <name>
  31. HTTP with "Content-Encoding: none
  32. </name>
  33. <command>
  34. http://%HOSTIP:%HTTPPORT/hello/%TESTNUMBER --compressed
  35. </command>
  36. </client>
  37. # Verify data after the test has been "shot"
  38. <verify>
  39. <strip>
  40. ^Accept-Encoding:.*
  41. </strip>
  42. <protocol>
  43. GET /hello/%TESTNUMBER HTTP/1.1
  44. Host: %HOSTIP:%HTTPPORT
  45. User-Agent: curl/%VERSION
  46. Accept: */*
  47. </protocol>
  48. </verify>
  49. </testcase>