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.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5   8.0   8.1    Statistic  


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 )


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


Returns "OK" on success.


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
smtp25, 465 with SSL, 587
pop3110, 995 with SSL
imap143, 993 with TLS


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.

MBS Xojo PDF Plugins