test1164 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. </keywords>
  7. </info>
  8. #
  9. # Server-side
  10. <reply>
  11. # perl -e 'print "swsclose" . "\0" x 200;' | base64
  12. # 'swsclose' is there to force server to close after send
  13. <data nocheck="yes" base64="yes">
  14. c3dzY2xvc2UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  15. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  16. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  17. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
  18. </data>
  19. </reply>
  20. #
  21. # Client-side
  22. <client>
  23. # hyper doesn't support HTTP/0.9
  24. <features>
  25. !hyper
  26. </features>
  27. <server>
  28. http
  29. </server>
  30. <name>
  31. HTTP/0.9 GET and all zeroes
  32. </name>
  33. <command option="force-output">
  34. http://%HOSTIP:%HTTPPORT/%TESTNUMBER -w '%{size_download}\n' --http0.9
  35. </command>
  36. </client>
  37. #
  38. # Verify data after the test has been "shot"
  39. <verify>
  40. <protocol>
  41. GET /%TESTNUMBER HTTP/1.1
  42. Host: %HOSTIP:%HTTPPORT
  43. User-Agent: curl/%VERSION
  44. Accept: */*
  45. </protocol>
  46. <stdout mode="text">
  47. 208
  48. </stdout>
  49. </verify>
  50. </testcase>