Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


Whether to use ASCII mode for FTP transfer.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionTransferText"; Handle; Value )


Parameter Description Example value
Handle The CURL session handle. $curl
Value Whether to use ASCII mode. 1


Returns "OK" on success.


Whether to use ASCII mode for FTP transfer.
A parameter set to 1 tells the library to use ASCII mode for FTP transfers, instead of the default binary transfer. For win32 systems it does not set the stdout to binary mode. This option can be usable when transferring text data between systems with different views on certain characters, such as newlines or similar.

libcurl does not do a complete ASCII conversion when doing ASCII transfers over FTP. This is a known limitation/flaw that nobody has rectified. libcurl simply sets the mode to ASCII and performs a standard transfer.


Set transfer mode to binary data:

MBS( "CURL.SetOptionTransferText"; $curl; 0 )

Set transfer mode to text:

MBS( "CURL.SetOptionTransferText"; $curl; 1 )

See also

CURL.SetOptionTransferEncoding   -   CURL.SetOptionURL

Feedback: Report problem or ask question.

MBS Xojo Plugins