curl-users
Re: ftp listings
Date: Thu, 4 Mar 2004 22:59:24 +0100 (CET)
On Wed, 3 Mar 2004, Shafeek P.S wrote:
> I have a problem while connnecting to ftp site for listing of the
> files, when i do a listing using -l im getting an html page instead of only
> filenames.Is there any way to do the listing so that i will get only
> filenames,otherwise i need to awk through the HTML page to get the
> filenames,i think doing this is not a generic solution,if the structure of
> the html pages changes my script will go for a toss,This is the script that
> i wrote this will connect to network associate ftp site to list the latest
> DAT files
>
> $CURL/curl -v -U $PROXY_USER:$PROXY_PASSWD -x
> $PROXY_HOST:$PROXY_PORT -Q "CWD
> /pub/antivirus/datfiles/4.x/" -l "ftp://ftp.nai.com/"
When you speak FTP over a proxy, the communication is switched over to HTTP.
Thus, lots of FTP-specific options in curl is not available when you use a
proxy.
If you can tunnel through the proxy (-p) you can still use "proper" FTP, but
most proxy admins don't allow tunneling to all ports.
-- Daniel Stenberg -- http://curl.haxx.se/ -- http://daniel.haxx.se/ [[ Do not send mails to this email address. They won't reach me. ]]Received on 2004-03-04