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.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

CURL.SetOptionPort

Sets the port number for the connection.

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

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

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value The new port number. 8000

Result

Returns "OK" on success.

Description

Sets the port number for the connection.
Specify what remote port number to connect to, instead of the one specified in the URL or the default port for the used protocol.
See also CURL.SetOptionFTPPort.

ProtocolsCommon Ports
http80, 443 with SSL
ftp20 and 21
sftp22
smtp25, 465 with SSL, 587
pop3110, 995 with SSL
imap143, 993 with TLS

Examples

Use Port 25 for smtp:

MBS( "CURL.SetOptionPort"; $curl; 25 )
# alternative 587 or with SSL 465.

Use Port 8080 for http:

MBS( "CURL.SetOptionPort"; $curl; 8080 )

See also

Example Databases


CURL.SetOptionPassword   -   CURL.SetOptionPost

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins