Hi,

I'm trying to use lftp to access FTP sites outside of our http proxy.

Starting from a default installation, I set the hftp:proxy parameters
appropriately.

I first tried using quite an early version of lftp (1.3.x I believe),
since it was the only binary I could find for cygwin.  This
successfully accessed the remote site, and I could traverse remote
directories.  However, attempts to get files resulted in a 404 error
from the proxy.  Looking at the debug output, it seems that our proxy
does not handle the 'type' parameter being appended to the URL.

That early version of lftp I tried did not support the hftp:use-type
setting, so I attempted to build a more recent version on cygwin.
Didn't have much luck there (segfaults, bad build), so I moved to a
linux box.

Every more recent version of lftp I've tried, right up to the latest
source, has connected to the remote server just fine.  However, I
never get any output from the ls command!  I can cd into directories
which I know exist, and that gives a 'cd ok' message.  I can even get
files which I know exist.  So, it seems the use-head = no setting is
what I need (downloads are working) and the connection is fine... but
I'm not getting any output from ls.

In fact, even mget operations fail on dirs where I know there are
files, since the mget op itself doesn't see any files to retrieve.

Here's the debug output for when I attempt to do an ls:

---- Connecting to proxy 192.168.0.2 (192.168.0.2) port 8080
---- Sending request...
---> GET ftp://[EMAIL PROTECTED]/somefolder%5Csomeotherfolder/ HTTP/1.1
---> Host: 11.22.33.44
---> User-Agent: lftp/3.5.1
---> Proxy-Authorization: Basic <randomchars>
---> Authorization: Basic <randomchars>
---> Pragma: no-cache
---> Cache-Control: no-cache
---> Connection: keep-alive
--->
<--- HTTP/1.1 200 OK
<--- Connection: close
<--- Content-Type: text/html
<--- Age: 0
<---
---- Receiving body...
---- Hit EOF
---- Closing HTTP connection




Any ideas?

Many thanks,
Chris

Reply via email to