I've narrowed down what I think is a bug in cookie handling related to http 
authorization digests in the last three versions of wget.  I found that 1.9.1 
does the right thing, but that all later versions do not.

What I am doing, is a request like this:

wget -O usb.tivo --http-user=tivo --http-passwd=2807747290 
"http://192.168.23.33/download/foo.TiVo?Container=%2FNowPlaying&id=15960";


What I get at the console that issued this command is (using 1.10.2):

 /usr/local/src/wget-1.10.2/src/wget -O usb.tivo --http-user=tivo 
--http-passwd=2807747290 
"http://192.168.23.33/download/foo.TiVo?Container=%2FNowPlaying&id=15960";
--07:41:48--  
http://1192.168.23.33/download/foo.TiVo?Container=%2FNowPlaying&id=15960
           => `usb.tivo'
Connecting to 192.168.23.33:80... connected.
HTTP request sent, awaiting response... 401 Digest Authorization Required
Reusing existing connection to 192.168.23.33:80.
HTTP request sent, awaiting response... 400 Bad Request
07:41:48 ERROR 400: Bad Request.






















[EMAIL PROTECTED]:~/ttcp> /usr/local/src/wget-1.10.2/src/wget -O usb.tivo 
--http-user=tivo --http-passwd=2807747290 
"http://10.200.2.196:80/download/Saved%20by%20the%20Bell.TiVo?Container=%2FNowPlaying&id=15960";
--11:01:09--  
http://10.200.2.196/download/Saved%20by%20the%20Bell.TiVo?Container=%2FNowPlaying&id=15960
           => `usb.tivo'
Connecting to 10.200.2.196:80... connected.
HTTP request sent, awaiting response... 401 Digest Authorization Required
Reusing existing connection to 10.200.2.196:80.
HTTP request sent, awaiting response... 400 Bad Request
11:01:10 ERROR 400: Bad Request.

[EMAIL PROTECTED]:~/ttcp> scp [EMAIL PROTECTED]:/sandbox/archive/wget-1.8* .
[EMAIL PROTECTED]'s password: 
wget-1.8.1.tar.gz                             100% 1072KB   1.1MB/s   00:00    
[EMAIL PROTECTED]:~/ttcp> /usr/local/src/wget-1.8.1/src/wget -O usb.tivo 
--http-user=tivo --http-passwd=2807747290 
"http://10.200.2.196:80/download/Saved%20by%20the%20Bell.TiVo?Container=%2FNowPlaying&id=15960";
--11:13:51--  
http://10.200.2.196/download/Saved%20by%20the%20Bell.TiVo?Container=%2FNowPlaying&id=15960
           => `usb.tivo'
Connecting to 10.200.2.196:80... connected.
HTTP request sent, awaiting response... 401 Digest Authorization Required
Connecting to 10.200.2.196:80... connected.
HTTP request sent, awaiting response... 200 File Follows
Length: unspecified [video/x-tivo-mpeg]

Reply via email to