test1468 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. HTTP GET
  6. SOCKS5
  7. SOCKS5h
  8. unix sockets
  9. </keywords>
  10. </info>
  11. #
  12. # Server-side
  13. <reply>
  14. <data>
  15. HTTP/1.1 200 OK
  16. Date: Tue, 09 Nov 2010 14:49:00 GMT
  17. Server: test-server/fake
  18. Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT
  19. ETag: "21025-dc7-39462498"
  20. Accept-Ranges: bytes
  21. Content-Length: 6
  22. Connection: close
  23. Content-Type: text/html
  24. Funny-head: yesyes
  25. -foo-
  26. </data>
  27. </reply>
  28. #
  29. # Client-side
  30. <client>
  31. <features>
  32. proxy
  33. unix-sockets
  34. </features>
  35. <server>
  36. http
  37. socks5unix
  38. </server>
  39. <name>
  40. HTTP GET with host name using SOCKS5h via unix sockets
  41. </name>
  42. <command>
  43. http://this.is.a.host.name:%HTTPPORT/%TESTNUMBER --proxy socks5h://localhost%SOCKSUNIXPATH
  44. </command>
  45. </client>
  46. #
  47. # Verify data after the test has been "shot"
  48. <verify>
  49. <protocol>
  50. GET /%TESTNUMBER HTTP/1.1
  51. Host: this.is.a.host.name:%HTTPPORT
  52. User-Agent: curl/%VERSION
  53. Accept: */*
  54. </protocol>
  55. <socks>
  56. atyp 3 => this.is.a.host.name
  57. </socks>
  58. </verify>
  59. </testcase>