On Wed, Sep 06, 2006 at 06:55:14AM -0700, Yan Seiner wrote: > I am using lftp to upload files to my webserver using webdav > authentication. The webserver is set up to deny directory listing of > the target directory. lftp 3.5.4 seems to be failing to authenticate. > This didn't happen with lftp 3.0.13.
Either put a slash after /blog/Travels/images, or use http:authorization setting. That is: lftp -d -e "put x.jpg; exit" -u user,pass http://www.seiner.com/blog/Travels/images/ or lftp -d -e "set http:authorization user:pass; open http://www.seiner.com/blog/Travels/images; put x.jpg; exit" > <--- HTTP/1.1 301 Moved Permanently > <--- Date: Wed, 06 Sep 2006 13:45:15 GMT > <--- Server: Apache/2.0.51 (Fedora) > <--- Location: http://www.seiner.com/blog/Travels/images/ The problem is that lftp currently does not know after redirection that it has to use login and password. It is a limitation to be fixed. For now, avoid redirect with trailing slash or tell lftp explicitly to use authorization all the time. -- Alexander..
