curl-users
Re: ftp listings
Date: Fri, 5 Mar 2004 03:41:41 +0000 (GMT)
hi daniel,
Thanx for the reply.My proxy doesn't
allow the tunneling so i cann't use that option.
Thanx and regards,
Shafeek
--- Daniel Stenberg <daniel-curl_at_haxx.se> wrote: > 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. ]]
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
Received on 2004-03-09