bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] HTTP Basic auth not working in 1.13.4


From: rihad
Subject: [Bug-wget] HTTP Basic auth not working in 1.13.4
Date: Tue, 03 Jan 2012 18:01:52 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20111124 Thunderbird/8.0

Hi, all. After upgrading the FreeBSD port 1.12_4 to 1.13.4_1 this command no longer works:

$ wget -O- --http-user=user --http-password=password http://example.com/file.php
--2012-01-03 17:52:03--  http://example.com/file.php
Resolving example.com... 10.0.0.1
Connecting to example.com|10.0.0.1|:80... connected.
HTTP request sent, awaiting response... 401 Unauthorized

adding -d flag to wget gives this:

wget -d -t1 -T5 -O- --http-user=user --http-password=password --cache=off http://example.com/file.php
Setting --tries (tries) to 1
Setting --timeout (timeout) to 5
Setting --output-document (outputdocument) to -
Setting --http-user (httpuser) to user
Setting --http-password (httppassword) to password
Setting --cache (cache) to off
DEBUG output created by Wget 1.13.4 on freebsd8.2.

--2012-01-03 17:53:42--  http://example.com/file.php
Host `example.com' has not issued a general basic challenge.
Resolving example.com... 10.0.0.1
Caching example.com => 10.0.0.1
Connecting to example.com|10.0.0.1|:80... connected.
Created socket 3.
Releasing 0x0000000800a040e0 (new refcount 1).

---request begin---
GET /file.php HTTP/1.1
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
User-Agent: Wget/1.13.4 (freebsd8.2)
Accept: */*
Host: example.com
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response...
---response begin---
HTTP/1.0 401 Unauthorized
Date: Tue, 03 Jan 2012 13:54:02 GMT
Server: Apache/1.3.29 (Win32) PHP/5.0.3
WWW-Authenticate: Basic realm="I need password"
Content-Type: text/html; charset=iso-8859-1
X-Cache: MISS from cache.example.com
Connection: close

---response end---
401 Unauthorized
Registered socket 3 for persistent reuse.
Inserted `example.com' into basic_authed_hosts
Disabling further reuse of socket 3.
Closed fd 3

---request begin---
GET /file.php HTTP/1.1
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
User-Agent: Wget/1.13.4 (freebsd8.2)
Accept: */*
Host: example.com
Connection: Keep-Alive
Authorization: Basic c3RyZWFtOmp1c3Rkb2l0

---request end---
Failed writing HTTP request: Operation timed out.
Closed fd 3
Giving up.


Why is it failing? wget 1.12 never failed, and instead gave this:

HTTP request sent, awaiting response...

and got the response.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]