Florian Schulze | 7 Mar 2006 18:19
Picon
Gravatar

HTTP Digest Authentication


Hello!

First and foremost: lftp is really great and especially fast!

I use it to retrive backups from a WebDAV server. I noticed that it 
doesn't seem to be possible to use digest
authentication, at least I can't find an option for it. Is this supported 
and if so how do I use it? For the
first server it's not that much of a problem, as it's https anyway, but 
the other one is only http and I would
like to have a bit more security than just basic authentication.

Thanks and regards,
Florian Schulze

Wenzhi Liang | 12 Mar 2006 23:27
Picon

more than one session downloading one file

Hi all,

I am just wondering what would happen if I have more than one lftp
session download from two places the same file at the same file.

Say I am dowloading foo from server bar1 and bar2 at the same
time, both using 'get -c' command. What is going to happen?

I am doing an experiment and one session tells me it has 46% done
and the other says 16%.

Thanks,

Liang

Alexander V. Lukyanov | 13 Mar 2006 11:36
Picon
Gravatar

Re: [Fwd: Bug#353466: Doesn't follow 302 Found redirects]

On Fri, Feb 24, 2006 at 10:05:22PM +0100, Noèl Köthe wrote:
> > <p>The document has moved <a href="http://ftp.gnome.org/pub/GNOME/pub/GNOME/sources/metacity/2.12/">here</a>.</p>

It looks like a bogus redirection. Note that double /pub/GNOME/pub/GNOME.

--

-- 
   Alexander.                      | http://www.yars.free.net/~lav/   

Alexander V. Lukyanov | 13 Mar 2006 11:42
Picon
Gravatar

Re: get non existent remote file - creates local empty file

On Wed, Feb 22, 2006 at 01:43:47PM +0100, alexander.palisek <at> bawagpsk.com wrote:
> during testing our modified scripts with lftp, we found an issue.
> Trying to get a remote file, that does not exist, creates a local
> null byte file with the name from the get statement.

Thanks for report. The bug was introduced in 3.4.0. Here is a fix.

--
   Alexander.                      | never mind that noise you heard
Index: FileCopy.cc
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/FileCopy.cc,v
retrieving revision 1.120
diff -u -p -r1.120 FileCopy.cc
--- FileCopy.cc	16 Feb 2006 08:03:31 -0000	1.120
+++ FileCopy.cc	13 Mar 2006 10:39:36 -0000
 <at>  <at>  -149,8 +149,11  <at>  <at>  int FileCopy::Do()
       }
       if(get->Error() && get->Size()==0)
       {
-	 put->PutEOF();
-	 Roll(put);
+	 if(put->GetPos()>0)
+	 {
+	    put->PutEOF();
+	    Roll(put);
+	 }
       get_error:
(Continue reading)

Alexander V. Lukyanov | 14 Mar 2006 08:18
Picon
Gravatar

Re: [Fwd: Bug#353934: lftp to http site no longer works]

On Fri, Feb 24, 2006 at 10:02:47PM +0100, Noèl Köthe wrote:
> >     % lftp http://incoming.debian.org
> >     cd: Access failed: 404 Not Found (/)

Recently I have changed method of checking for existence of a directory.
Now lftp uses PROPFIND by default (it is controlled by http:use-propfind setting).
For some reason, incoming.debian.org returns 404 Not Found error for PROPFIND
requests. A workaround would be to set http:use-propfind to no.

What should be the default for the setting? Opinions?

--

-- 
   Alexander.

Pascal Bleser | 14 Mar 2006 09:04
Picon

Re: [Fwd: Bug#353934: lftp to http site no longer works]


Alexander V. Lukyanov wrote:
> On Fri, Feb 24, 2006 at 10:02:47PM +0100, Noèl Köthe wrote:
>>>     % lftp http://incoming.debian.org
>>>     cd: Access failed: 404 Not Found (/)
> 
> Recently I have changed method of checking for existence of a directory.
> Now lftp uses PROPFIND by default (it is controlled by http:use-propfind setting).
> For some reason, incoming.debian.org returns 404 Not Found error for PROPFIND
> requests. A workaround would be to set http:use-propfind to no.
> 
> What should be the default for the setting? Opinions?

Hi Alexander.

Yes, I would be in favor of defaulting to the previous behaviour, as
I've noticed quite a lot of http servers not being usable with PROPFIND.

Thanks for your help (and your great work, as always) :)

cheers
--
  -o) Pascal Bleser     http://linux01.gwdg.de/~pbleser/
  /\\ <pascal.bleser <at> skynet.be>       <guru <at> unixtech.be>
 _\_v The more things change, the more they stay insane.
alexander.palisek | 14 Mar 2006 12:01

Antwort: Re: get non existent remote file - creates local empty file


Hello,

>On Wed, Feb 22, 2006 at 01:43:47PM +0100, alexander.palisek <at> bawagpsk.com wrote:
>> Trying to get a remote file, that does not exist, creates a local
>> null byte file with the name from the get statement.
>The bug was introduced in 3.4.0. Here is a fix.

Thanks a lot, the issue is fixed now, lftp works as expected.

Regards,
Alexander Palisek

***************************************************************************
Diese Information und eventuelle Anhaenge sind vertraulich 
und ausschliesslich zur Kenntnisnahme durch den oder die 
genannten Adressaten bestimmt. Sollten Sie nicht der 
vorgesehene Adressat sein, ersuchen wir Sie, uns unverzueglich 
zu informieren und die Nachricht zu loeschen. Der Inhalt der 
fehlgeleiteten Nachricht darf weder aufgezeichnet noch 
Unbefugten mitgeteilt oder fuer irgendwelche Zwecke verwertet 
werden. Bitte beachten Sie weiters, dass trotz hoechstmoeglicher 
Sorgfalt unsererseits aufgrund der technischen Gegebenheiten 
im Internet keine Verantwortung fuer die Existenz von Viren 
uebernommen werden kann.

This message and any attachments are confidential and are 
only intended for the recipient(s) to which they have been 
addressed. If you have received this message in error, please 
notify the sender immediately and delete the message from 
(Continue reading)

Thomas Glanzmann | 15 Mar 2006 13:14
Picon
Picon

tell mirror to deference symbolic links per default

Hello,
is there an other way to tell mirror do derefence symbolic links per
default other than

        alias m="mirror -L" like mirror-options?

Gruesse,
        Thomas

Mark Duling | 17 Mar 2006 19:03
Favicon

Can't compile lftp when XML_ParserCreateNS in -lexpat... yes

Hello,

Lftp works fine on several of my Macs (darwin), but on one of my Mac's
when expat is present I can't compile lftp.  All of them have expat
installed.  But on the problem Mac, it detects:

checking for XML_ParserCreateNS in -lexpat... yes

whereas the others say "no" even though expat is installed.  Below is the
compile error I get on the problem Mac.   I can remove expat and lftp
installs on the problem Mac but I really need to have it on for other
apps.  Any idea how I can fix this?  Thanks.

Mark

----------------------------------------------
make all" returned error 2
Command output: ../include/triodef.h:138: warning: To disable this
warning, use 
   -Wno-long-double.)
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include   
-I/opt/local/include  -O2 -Wall -MT lftp_rl.o 
-MD -MP -MF ".deps/lftp_rl.Tpo" -c -o lftp_rl.o lftp_rl.c; \
then mv -f ".deps/lftp_rl.Tpo" ".deps/lftp_rl.Po"; else rm -f
".deps/lftp_rl.Tpo"; exit 1; fi
lftp_rl.c: In function `lftp_rl_init':
lftp_rl.c:165: warning: assignment from incompatible pointer type
if gcc -DHAVE_CONFIG_H -I. -I. -I../include -I../include   
-I/opt/local/include  -O2 -Wall -MT 
getdate.o -MD -MP -MF ".deps/getdate.Tpo" -c -o getdate.o getdate.c; \
(Continue reading)

Adam Ringel | 22 Mar 2006 20:36
Favicon

Java API for LFTP


Hi Alexander,

Any chance a Java API for LFTP will be produced?

Regards,

Adam Ringel
PE Application Support
703-903-3892 (w)
703-701-3685 (p)

Gmane