cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: FTP list output format

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 29 Apr 2009 23:56:28 +0200 (CEST)

On Wed, 29 Apr 2009, AMBROSINI Marco wrote:

> 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>

That's because you fetch FTP over a HTTP proxy that "helps" you get the
content back in a format it thinks you like. There's nothing you can do about
it, except parse the content as you see fit.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
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