Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3    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"; curl; Value )   More


Parameter Description Example value
curl 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

See also PORT option in CURL manual.


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

Blog Entries

FileMaker Magazin

Created 18th August 2014, last changed 24th November 2016

CURL.SetOptionPipeWait   -   CURL.SetOptionPost

Feedback: Report problem or ask question.

MBS Xojo blog