Forum: Ruby ruby proxy http headers

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
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|
This topic is locked and can not be replied to.