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.
F145d60ed26f9d3e0bac5f062985bfea?d=identicon&s=25 Sarek M. (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.