Re: FTP: TYPE A on CURLOPT_CUSTOMREQUEST
Date: Tue, 29 Nov 2005 13:49:49 +0100 (CET)
On Tue, 29 Nov 2005, Olivier ROBIN wrote:
> I wanna send an FTP command having the DTP channel opened, so I use
> CURLOPT_CUSTOMREQUEST. This option opens the DTP channel and set the ascii
> type for the transfer (TYPE A).
You don't need CURLOPT_CUSTOMREQUEST to set TYPE A (ascii), just ask for ascii
> The problem is I want the binary type (TYPE I).
libcurl uses binary type by default, why do you need to do it with
> I try to set it with the option CURLOPT_PREQUOTE or with the option
> CURLOPT_TRANSFERTEXT but libcurl always send 'TYPE A'. Is it possible to
> have 'TYPE I' instead 'TYPE A' on CURLOPT_CUSTOMREQUEST ?
Ah, are you possibly using a "directory" URL? (a URL that ends with a slash)
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-11-29