bugGNU Wget - Bugs: bug #45443, http_proxy variable should also...

 
 

bug #45443: http_proxy variable should also work for capitalized HTTP_PROXY

Submitted by:  Noël Köthe <nok>
Submitted on:  Tue 30 Jun 2015 09:09:43 AM UTC  
 
Category: User InterfaceSeverity: 3 - Normal
Priority: 5 - NormalStatus: Wont Fix
Privacy: PublicAssigned to: Tim Ruehsen <rockdaboot>
Originator Name: Open/Closed: Closed
Release: 1.16.3Operating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: No

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 14 Aug 2015 08:58:58 AM UTC, comment #1:

I cite Daniel Stenberg (curl maintainer/developer) from the mailing list bug-wget@gnu.org, Tue, 30 Jun 2015 11:20:28 +0200 (CEST):

"The reason some tools don't accept "HTTP_PROXY" and only "http_proxy" is that the CGI interface from back in the old days provide headers from the incoming request to the CGI program prefixed with "HTTP_".

Thus, running a CGI script from a server, an incoming "Proxy:" header (which normally doesn't do anything) would be sent to the program as "HTTP_PROXY", leading to confusions or in the worst case some sort of attack.

The CGI interface is an ancient thing, probably boardering to extinction. Still it is out there and some such CGIs probably use wget.

Incidently, curl also only accepts the lower case version of this environment variable and I believe it goes for some other related tools as well."

Tim Ruehsen <rockdaboot>
Project AdministratorIn charge of this item.
Tue 30 Jun 2015 09:09:43 AM UTC, original submission:

Hello,

using the lowercase environment proxy variables works as documented:

# http_proxy=http://doesnotexist wget gnu.org
--2015-06-30 10:58:36-- http://gnu.org/
Resolving doesnotexist (doesnotexist)... failed: Name or service not known.
wget: unable to resolve host address 'doesnotexist'

but using it with capitalized variables they are ignored:

# HTTP_PROXY=http://doesnotexist wget gnu.org
--2015-06-30 11:07:42-- http://gnu.org/
Resolving gnu.org (gnu.org)... 208.118.235.148
Connecting to gnu.org (gnu.org)|208.118.235.148|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://www.gnu.org/ [following]
--2015-06-30 11:07:42-- http://www.gnu.org/
Resolving http://www.gnu.org (www.gnu.org)... 208.118.235.148, 2001:4830:134:3::a
Reusing existing connection to gnu.org:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: 'index.html'

index.html [ <=> ] 23.12K 63.1KB/s in 0.4s

2015-06-30 11:07:43 (63.1 KB/s) - 'index.html' saved [23677]

Variables are often written capitalized and they should not be ignored by wget.

Thank you.

https://bugs.debian.org/790523

Noël Köthe <nok>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by darnir (Updated the item)
  • -unavailable- added by rockdaboot (Posted a comment)
  • -unavailable- added by nok (Submitted the item)
  • -unavailable- added by nok
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 15 Aug 2015 07:12:12 AM UTCdarnirOpen/ClosedOpen=>Closed
    Fri 14 Aug 2015 08:58:58 AM UTCrockdabootStatusNone=>Wont Fix
      Assigned toNone=>rockdaboot
    Tue 30 Jun 2015 09:09:43 AM UTCnokCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1