Project

General

Profile

Actions

Feature #8771

closed

Start does not use proxy configuration form ENV variables

Added by sjltaylor (Sam Taylor) over 10 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
[ruby-core:56525]

Description

=begin

  • Start a fake proxy in a separate window: (({nc -l 8089}))
  • (({export http_proxy=http://localhost:8089}))
  • (({irb -r net/http}))
  • (({Net::HTTP.start('google.com').get('/')}))
  • Note that the above http request was not proxied using the environment configuration
  • (({Net::HTTP.new('google.com').get('/')})) exhibits the correct behaviour, the proxied HTTP request can be seen in the nc output
    =end

Files

378.patch (3.07 KB) 378.patch https://github.com/ruby/ruby/pull/378 sjltaylor (Sam Taylor), 08/11/2013 07:09 AM

Related issues 2 (0 open2 closed)

Related to Ruby master - Feature #6546: Net::HTTP to check for HTTP_PROXY environment setting.Closednaruse (Yui NARUSE)06/04/2012Actions
Related to Ruby master - Bug #13351: net/http: Net::HTTP.start sets wrong default arg valueClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0