cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftp bin-mode in url

From: Daniel Stenberg <daniel-curl_at_haxx.se>
Date: Fri, 11 Jun 2004 13:17:37 +0200 (CEST)

On Thu, 10 Jun 2004, Gisle Vanem wrote:

> This CWD to the correct dir, does a LIST, but uses TYPE A
> curl ftp://host/dir/;type=I

Yes, because libcurl always uses TYPE A when listing a directory. What is the
difference supposed to be in your case? I admit I don't remember what the RFC
says about this issue.

> But libcurl should use 'TYPE I' when told to. I'm not sure where it should
> be fixed (url.c or ftp.c), if at all.

If it should be fixed, it is lib/ftp.c:1937 (in the CVS version) that
explicitly uses TYPE A.

-- 
     Daniel Stenberg -- http://curl.haxx.se -- http://daniel.haxx.se
      Dedicated custom curl help for hire: http://haxx.se/curl.html
Received on 2004-06-11