property ProxySettings: TIdFtpProxySettings;DescriptionProxySettings 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.
重点是ProxyType,当不使用代理,用IE代理,用HTTP代理,和用SOCKET代理,该分别用哪个值?

解决方案 »

  1.   

    fpcmNone: Sends the Username and optional Password found in the FTP client.
    fpcmNone:发送FTP客户端的用户名和可选密码(即包含匿名情况,匿名不需要密码)。fpcmUserSite: Sends the Username and optional Password in ProxySettings, followed immediately by the Username and optional Password found in the FTP client.
    fpcmUserSite:发送在代理设置里的用户名和可选密码,以及紧跟着的FTP客户端用户名和可选密码。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.
    fpcmSite:发送在代理设置里的用户名和可选密码、SITE命令、Host属性的值和FTP客户端用户名和可选密码。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.
    fpcmOpen:发送在代理设置里的用户名和可选密码,发送以Host属性值(为参数)的OPEN命令和FTP客户端用户名和可选密码。fpcmUserPass: Calls SendCmd with the command USER user@proxyuser@host, calls SendCmd with the command PASS pwd@proxypwd, or optionally PASS pwd.
    fpcmUserPass:调用SendCmd,参数USER user@proxyuser@host的命令,调用SendCmd,参数PASS pwd@proxypwd的命令或者是PASS pwd@proxypwd。fpcmTransparent: Sends the ProxySettings Username and optional Password, followed immediately by the FTP client Username and optional password.
    fpcmTransparent:发送在代理设置里的用户名和可选密码,以及紧跟着的FTP客户端用户名和可选密码。(和fpcmUserSite类似)fpcmHttpProxyWithFtp: Not implemented at this time.
    fpcmHttpProxyWithFtp:目前还没有实现。fpcmCustomProxy: Signals the OnCustomFTPProxy event handler to perform the FTP protocol exchange.
    fpcmCustomProxy:发送OnCustomFTPProxy事件句柄信号来执行FTP协议的交换。
    自己翻译的,各位见笑了