:Password()


Class

     aprFTP()

 

Syntax

     :Password( cPass, [hSession] ) -> lSuccess

 

Parameters

 

cPass

String that specifies the password to be used to authenticate the current client session.

 

hSession

Optional: If hSession is not passed, the value in :Session will be used

 

Return

Logical indicating Success.

Returns .T. if the operation succeeds, otherwise returns .F.

To get further error information see :nErr and :cErr

To see the remote server's response, see :GetResultCode() and :GetResultString().

 

Description

The :Password() method sends the specified user password to the remote server for authentication.

 

The :Login() method should be used in place of this function whenever possible. This function should only be called when client application must use a non-typical login sequence, such as through a proxy server.

 

This function sends the PASS command to the remote server, and should only be called when the :UserName() method returns the result code FTP_REPLY_GETPASS. See :GetResultCode().

 

See Also

:Account(), :Login(), :Username()