How to use GoProxies in Ruby?
Using Ruby to Route Traffic Via GoProxies
require 'uri'
require 'net/http'
uri = URI.parse('http://ipinfo.io')
proxy = Net::HTTP::Proxy('proxy.goproxies.com', 1080, 'customer-USERNAME-country-au', 'PASSWORD')
req = Net::HTTP::Get.new(uri)
result = proxy.start(uri.host, uri.port) do |http|
http.request(req)
end
puts result.bodyLast updated
Was this helpful?

