4D Internet Commands v14

FTP_SetType

Home

 
4D Internet Commands v14
FTP_SetType

FTP_SetType 


 

FTP_SetType ( ftp_ID ; ftp_Mode ) -> Function result 
Parameter Type   Description
ftp_ID  Longint in Reference to a FTP login
ftp_Mode  String in "A" = Ascii; "I" = [Default] Image; "L 8" = Logical 8-bit
Function result  Integer in Error Code

The FTP_SetType command is used to alter the FTP transfer mode used during Send/Receive operations. Typically this will not need to be changed from the default settings. However, because of differences between various platforms and ftp implementations, it may be necessary to change the mode for certain types of FTP transfers. In particular, some transfers of plain-text documents may require you to switch the mode to Ascii in order to properly transfer the text file.

ftp_ID is the long integer reference to the FTP session established with FTP_Login.

ftp_Mode should contain a code as described above indicating the preferred transfer mode to use for future Send/Receive operations. By default, the Image ("I") transfer mode is used.

 
PROPERTIES 

Product: 4D Internet Commands
Theme: IC File Transfer
Number: 88901

 
HISTORY 

Created: 4D Internet Commands 6.5

 
SEE ALSO 

FTP_GetType

 
ARTICLE USAGE

4D Internet Commands ( 4D Internet Commands v11.4)
4D Internet Commands ( 4D v13.2)
4D Internet Commands ( 4D Internet Commands v12.1)
4D Internet Commands ( 4D Internet Commands v14 R2)
4D Internet Commands ( 4D Internet Commands v14)
4D Internet Commands ( 4D Internet Commands v14 R3)
4D Internet Commands ( 4D Internet Commands v14 R4)