Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
9.3
9.4
9.5
10.0
10.1
10.2
10.3
10.4
10.5
10.6
Statistic
FMM
Blog
CURL.SetOptionPort
Sets the port number for the connection.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CURL | 2.5 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| curl | 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.
| Protocols | Common Ports |
| http | 80, 443 with SSL |
| ftp | 20 and 21 |
| sftp | 22 |
| smtp | 25, 465 with SSL, 587 |
| pop3 | 110, 995 with SSL |
| imap | 143, 993 with TLS |
See also PORT option in CURL manual.
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
- CURL.SetOptionConnectionTimeout
- CURL.SetOptionGet
- CURL.SetOptionLocalPort
- CURL.SetOptionPost
- CURL.SetOptionProxy
- CURL.SetOptionQuote
- CURL.SetOptionRange
- CURL.SetOptionSSLCert
- CURL.SetOptionURL
- SendMail.SetSMTPServer
Example Databases
- CURL/Email/Batch Emailer
- CURL/Email/Build and send Email
- CURL/Email/Build and send HTML Email with inline graphic
- CURL/Email/IMAP Email List
- CURL/Email/IMAP Email Upload
- CURL/Email/IMAP Email
- CURL/Email/List IMAP folders
Blog Entries
- Email Script for FileMaker
- Upload email to Sent folder via IMAP
- Sending emails in FileMaker with MBS Plugin
- Tip of the day: FTP File Upload
- Sending Email with FileMaker via MBS Plugin
FileMaker Magazin
Created 18th August 2014, last changed 24th November 2016
CURL.SetOptionPipeWait - CURL.SetOptionPost
Feedback: Report problem or ask question.
Links
MBS Xojo Chart Plugins