Project

General

Profile

Bug #8771

Start does not use proxy configuration form ENV variables

Added by Sam Taylor almost 3 years ago. Updated almost 2 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
ruby -v:
2.1.0dev
[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

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


Related issues

Related to Ruby trunk - Feature #6546: Net::HTTP to check for HTTP_PROXY environment setting. Closed 06/04/2012

History

#2 [ruby-core:56531] Updated by Zachary Scott almost 3 years ago

  • Status changed from Open to Assigned

#3 [ruby-core:57246] Updated by Yui NARUSE almost 3 years ago

  • Status changed from Assigned to Rejected

It causes that a client can set http_proxy on CGI environments.

see also akr's comment on https://bugs.ruby-lang.org/issues/6546

#4 [ruby-core:64352] Updated by Jason Meller almost 2 years ago

Yui NARUSE wrote:

It causes that a client can set http_proxy on CGI environments.

see also akr's comment on https://bugs.ruby-lang.org/issues/6546

Yui can you take closer look at this bug? The patch seems to set the variable correctly to avoid the CGI issue as defined in https://bugs.ruby-lang.org/issues/6546. I believe this bug is valid and that the page makes the behavior between Net::HTTP.start('google.com').get('/') and Net::HTTP.new('google.com').get('/') consistent when dealing with a proxy set in an environment variable.

Also available in: Atom PDF