test720 876 B

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