On Fri, 2005-01-14 at 17:32, Alexander V. Lukyanov wrote: > On Fri, Jan 14, 2005 at 10:20:57AM +1000, Ian Mortimer wrote: > > Does lftp work with a squid proxy requiring authentication? > > The man page says: > > > > If your ftp proxy requires authentication, specify > > user name and password in the URL. > > > > but I can't seem to get that to work. > > What do you do? Turn on debug to see what lftp sends to the proxy.
This is what it shows with no username or password on the command line: ---- Connecting to proxy proxy.net (10.1.1.1) port 3128 ---- Sending request... ---> GET ftp://ftp.othernet/ HTTP/1.1 ---> Host: ftp.othernet ---> User-Agent: lftp/3.0.13 ---> Connection: keep-alive ---> <--- HTTP/1.0 407 Proxy Authentication Required <--- Server: Squid/2.4.STABLE6 <--- Mime-Version: 1.0 <--- Date: Mon, 17 Jan 2005 01:33:29 GMT <--- Content-Type: text/html <--- Content-Length: 1008 <--- Expires: Mon, 17 Jan 2005 01:33:29 GMT <--- X-Squid-Error: ERR_CACHE_ACCESS_DENIED 0 <--- Proxy-Authenticate: Basic realm="Squid proxy-caching web server" <--- X-Cache: MISS from proxy.net <--- Proxy-Connection: keep-alive <--- ---- Closing HTTP connection ls: Access failed: 407 Proxy Authentication Required (~/) With a username and password on the command line it's identical except that the GET line shows: GET ftp://[EMAIL PROTECTED]/ HTTP/1.1 I think I need to see an example of the syntax for passing a proxy username and password on the command line. (The syntax I'm using is for sending a username and password to the remote server not to the proxy server). Thanks -- Ian
