piRemotePort - InetTransfer
Specifies the port to connect to on RemoteHost
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer piRemotePort
| Access Type | Syntax |
|---|---|
| Read Access: | Get piRemotePort to IntegerVariable |
| Write Access: | Set piRemotePort to IntegerVariable/Value |
Description
piRemotePort specifies the port to connect to on RemoteHost. It can be any valid port number. The following constants may be also be used:
| Constant | Meaning |
|---|---|
| rpHttp | The default Http port (80). |
| rpHttpSSL | The default Https (secure, SSL layer) port (443) |
| rpFtp | The default Ftp port (21) |
When used with cHttpTransfer class, default is rpHttp. When used with cFtpTransfer class, default is rpFtp.
If you need to access a secure SSL site (e.g., Https:) you will want to set the port to rpHttpSSL and will need to set the peTransferFlags so that it contains the ifSecure flag. If your secure site requires a client certificate, you may select this using SelectClientCertificate method.
Set piRemotePort to rpHttpSSL
Set peTransferFlags to ifSecure