bugGNU Wget - Bugs: bug #34141, Username/password embedded in URL...


bug #34141: Username/password embedded in URL no longer accepted (wget 1.13)

Submitted by:  Andrew Benham <adsb>
Submitted on:  Fri 26 Aug 2011 02:52:36 PM UTC  
Category:  User Interface Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Privacy:  Public Assigned to:  None
Originator Name:  Andrew Benham Open/Closed:  Open
Release:  trunk Operating System:  GNU/Linux
Reproducibility:  Every Time Fixed Release:  None
Planned Release:  None Regression:  None
Work Required:  None Patch Included:  None

Add a New Comment (Rich Markup)

You are not logged in

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


Fri 26 Aug 2011 02:52:36 PM UTC, original submission:  

Using wget version 1.13 on a Debian system, I can no longer use an HTTP URL of the form:


On wget 1.12 (and previous versions of wget going back for many years), I can do:

wget -O- -q http://admin:SECRET@ | sed -e '1,90d'

with success (reads the current ADSL stats from a Netgear router/modem, if you're interested).  I get HTML to STDOUT.

With wget 1.13, I get:

wget -O- -d http://admin:SECRET@
DEBUG output created by Wget 1.13 on linux-gnu.

URI encoding = `UTF-8'
--2011-08-26 15:42:07--  http://admin:*password*@
Connecting to connected.
Created socket 3.
Releasing 0x08a81100 (new refcount 0).
Deleting unused 0x08a81100.

---request begin---
GET /stattbl.htm HTTP/1.1
User-Agent: Wget/1.13 (linux-gnu)
Accept: /
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.1 401 Unauthorized
Date: Fri, 26 Aug 2011 14:42:06 GMT
Content-Type: text/html
Connection: close

---response end---
401 Unauthorized
Registered socket 3 for persistent reuse.
] done.
Unknown authentication scheme.
Authorization failed.

The man page suggests (in the --http-user section) that this should still work.  I can use --user and --password as a workaround, but wonder if the change in behaviour was intentional.

Andrew Benham <adsb>


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

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by adsb (Submitted the item)



    No changes have been made to this item

    Back to the top

    Powered by Savane 3.5