test708 795 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. SOCKS4
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply name="1">
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Thu, 09 Nov 2010 14:49:00 GMT
  15. Server: test-server/fake
  16. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  17. ETag: "21025-dc7-39462498"
  18. Accept-Ranges: bytes
  19. Content-Length: 6
  20. Connection: close
  21. Content-Type: text/html
  22. Funny-head: yesyes
  23. -foo-
  24. </data>
  25. </reply>
  26. #
  27. # Client-side
  28. <client>
  29. <server>
  30. http
  31. socks4
  32. </server>
  33. <setenv>
  34. all_proxy=socks4://%HOSTIP:%SOCKSPORT
  35. </setenv>
  36. <name>
  37. HTTP GET via SOCKS4 proxy
  38. </name>
  39. <command>
  40. http://%HOSTIP:%HTTPPORT/708
  41. </command>
  42. </client>
  43. #
  44. # Verify data after the test has been "shot"
  45. <verify>
  46. <strip>
  47. ^User-Agent:.*
  48. </strip>
  49. <protocol>
  50. GET /708 HTTP/1.1
  51. Host: %HOSTIP:%HTTPPORT
  52. Accept: */*
  53. </protocol>
  54. </verify>
  55. </testcase>