Forum: Ruby ruby proxy http headers

1fd27153517af6152950e13e5ee1b27e?d=identicon&s=25 Sarek Mather (mushini)
on 2012-12-23 01:23
How do I add headers to a proxy request using Net/Http?

proxy = Net::HTTP::Proxy(proxy_host, proxy_port)
proxy.start(url) { |http|
      res = http.get('/').body

compared to:
req =
res = Net::HTTP.start(uri.hostname, uri.port) {|http|
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.