lftp  

Re: http auth after redirect bug

Alexander V. Lukyanov
Mon, 26 Dec 2005 05:14:46 -0800

On Sat, Dec 24, 2005 at 12:58:17AM +0100, Hujer wrote:
> so i open lftp with
> lftp [EMAIL PROTECTED]/~username/directory
> 
> this will generate a HEAD command for the server but the server will generate 
> 301 reply to redirect to
> /~username/directory/ (note the last character)
> 
> lftp will try new HEAD to this new directory, but this time it will not send 
> the username/password and
> i get 401 reply with authentification error

> is there some workaround for this ?

You can use `set http:authorization user:password' as a workaround.

I'm not sure yet how to solve the problem generally. Probably lftp should
use login/password when an authenticated request results in redirect to
the same site.

-- 
   Alexander..