bugGNU Wget - Bugs: bug #41002, Credentials in URL not supported


bug #41002: Credentials in URL not supported

Submitted by:  Noël Köthe <nok>
Submitted on:  Thu 26 Dec 2013 11:29:17 AM UTC  
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Open
Release: trunkOperating System: GNU/Linux
Reproducibility: NoneFixed Release: None
Planned Release: NoneRegression: None
Work Required: NonePatch Included: None

Add a New Comment(Rich Markup)

You are not logged in

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


Thu 26 Dec 2013 11:29:17 AM UTC, original submission:


a forwarded bug from the Debian bugtracker: http://bugs.debian.org/709637:

Dear Maintainer,

after the upgrade to wheezy wget (basic http) auth doesn't work like
e.g. in version 1.12 anymore.

In former version the username and password could be given in the URL:
$ wget http://<user>:<pass>@<host>...

Doing so with the new version of wget gives an errror.
Using the commandline options '--user' and '--password' works:
$ wget --user=<user> --password=<pass> http://<host>...


> Could you send us the output of --debug?

I just found out the problem appears to be dependent on the server:

1.) Boa server & --user/--password => OK (wget__bad_server__ok.log)

$ wget -d -O /dev/null --user=user --password=password \
... 'http://xxx.xxx.xxx.xxx:80/protected'

2.) Boa server & user:passwd@host => FAIL (wget__bad_server__fail.log)

$ wget -d -O /dev/null \
... 'http://user:password*@xxx.xxx.xxx.xxx:80/protected'

3.) Apache server & user:passwd@host => OK (wget__good_server__ok.log)

$ wget -d -O /dev/null \
... 'https://user:password*@yyy.yyy.yyy.yyy/protected'

In 1 and 2 both the client and the server are the same. In 3 the client
machine is the same again but the server is on another machine and an
other implementation.

Thank you, Hannes

Noël Köthe <nok>


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

Attach File(s):

Attached Files
file #30095:  wget__bad_server__fail.log added by nok (3KiB - text/x-log - logfiles)
file #30096:  wget__good_server__ok.log added by nok (3KiB - text/x-log - logfiles)
file #30097:  wget__bad_server__ok.log added by nok (2KiB - text/x-log - logfiles)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by nok
  • -unavailable- added by nok (Submitted the item)

    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
    Thu 26 Dec 2013 11:29:17 AM UTCnokAttached File-=>Added wget__bad_server__fail.log, #30095
      Attached File-=>Added wget__good_server__ok.log, #30096
      Attached File-=>Added wget__bad_server__ok.log, #30097
      Carbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1