Topic Path: Symbol Reference > Classes > TIdFTP Class > TIdFTP Properties > ProxySettings Property
ContentsIndexHome
PreviousUpNext
TIdFTP.ProxySettings Property

Indicates the settings to use for connections opened using an FTP proxy server.

property ProxySettings: TIdFtpProxySettings;

ProxySettings is a TIdFtpProxySettings property that represent settings to use for connections opened using an FTP proxy server. Use of ProxySettings are required only when proxied connections to the FTP server are needed. 

ProxySettings contains properties that indicate the TIdFtpProxyType to use when establishing the proxied connection using the Host, Port, Username, and Password property values located in ProxySettings. 

The Host and Port values in ProxySettings are used in Connect to establish the control channel connection for the FTP client when ProxySettings.ProxyType contains a value other than fpcmNone. 

ProxySettings.ProxyType also indicates both the method and values used for authenticating the proxied connection to the FTP server in Login, according to the following proxy type values and methodologies: 

 

Value 
Meaning 
fpcmNone 
Sends the Username and optional Password found in the FTP client. 
fpcmUserSite 
Sends the Username and optional Password in ProxySettings, followed immediately by the Username and optional Password found in the FTP client. 
fpcmSite 
Sends the Username and optional Password in ProxySettings, the SITE command and the value in the Host property, and the Username and optional Password in the FTP client. 
fpcmOpen 
Sends the Username and optional Password in ProxySettings, sends the OPEN command with the value in Host, and the Username and optional Password for the FTP client. 
fpcmUserPass 
Calls SendCmd with the command USER user@proxyuser@host, calls SendCmd with the command PASS pwd@proxypwd, or optionally PASS pwd. 
fpcmTransparent 
Sends the ProxySettings Username and optional Password, followed immediately by the FTP client Username and optional password. 
fpcmHttpProxyWithFtp 
Not implemented at this time. 
fpcmCustomProxy 
Signals the OnCustomFTPProxy event handler to perform the FTP protocol exchange. 

 

Resources allocated to the ProxySettings property are freed in the Destroy method.

Copyright 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
Post feedback to the Indy Docs Newsgroup.