test1470 960 B

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