cURL / Mailing Lists / curl-users / Single Mail

curl-users

FTP list output format

From: AMBROSINI Marco <m.ambrosini_at_itcgr.net>
Date: Wed, 29 Apr 2009 15:27:32 +0200

Hi all,
I'm using curl-7.19.4 (win 32) - libcurlnet-1_3 in my .net application
and my goal is to display in a friendly way the list of files in a ftp
folder. I tried to do it, but I have as a result the html tags like this
(using ftp.micrsoft.com/developr as an example):

<HTML>
<meta http-equiv="Content-Type" content="text-html; charset=UTF-8">
<HEAD>
<TITLE>FTP directory /developr/ at ftp.microsoft.com. </TITLE>
</HEAD>
<BODY>
<H1>FTP directory /developr/ at ftp.microsoft.com. </H1>
<HR>
<H4><PRE>
Welcome to FTP.MICROSOFT.COM. Also visit
http://www.microsoft.com/downloads.
</PRE></H4>
<HR>
<PRE>
                          &lt;DIR&gt; ..<BR>02/01/06
07:02PM &lt;DIR&gt; adc
02/01/06 07:02PM &lt;DIR&gt; <A
HREF="/developr/basic/">basic</A>
...
02/01/06 07:16PM &lt;DIR&gt; <A
HREF="/developr/win_dk/">win_dk</A>
</PRE>
<HR>
</BODY>
</HTML>

Is this the only output I may receive? Do I have to manually parse the
string and catch the file names?
What do you usually do in this situation?

Regards,
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-04-29