test717 970 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <testcase>
  2. <info>
  3. <keywords>
  4. HTTP
  5. SOCKS5
  6. all_proxy
  7. </keywords>
  8. </info>
  9. #
  10. # Server-side
  11. <reply>
  12. <data>
  13. HTTP/1.1 200 OK
  14. Date: Tue, 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. # method 2 is SOCKS5 asking for user+password
  26. <servercmd>
  27. method 2
  28. user uz3r
  29. password p4ssworm
  30. backendport %HTTPPORT
  31. </servercmd>
  32. </reply>
  33. #
  34. # Client-side
  35. <client>
  36. <server>
  37. socks5
  38. http
  39. </server>
  40. <name>
  41. SOCKS5 proxy auth
  42. </name>
  43. # target a port that won't work without the SOCKS magic
  44. <command>
  45. http://%HOSTIP:1/%TESTNUMBER -x socks5://uz3r:p4ssworm@%HOSTIP:%SOCKSPORT
  46. </command>
  47. <features>
  48. proxy
  49. </features>
  50. </client>
  51. #
  52. # Verify data after the test has been "shot"
  53. <verify>
  54. <protocol>
  55. GET /%TESTNUMBER HTTP/1.1
  56. Host: %HOSTIP:1
  57. User-Agent: curl/%VERSION
  58. Accept: */*
  59. </protocol>
  60. </verify>
  61. </testcase>