Closed fokx closed 4 months ago
It is supported. Example:
def current_ip_address_https
uri = URI.parse('https://api.ipify.org/')
Net::HTTP.SOCKSProxy('127.0.0.1', 9050).start(uri.host, uri.port, use_ssl: true) do |http|
return http.get(uri.path).body
end
end
Your code is missing the use_ssl
argument.
Thanks!
gives this error:
if URL is changed to
http://google.com
So HTTPS is not supported?
Also I cannot find any working full-featured SOCKS5 proxy for ruby like PySocks for Python.