This method connects to the HTTP(S) server
[C++Builder] [ bool =
]imagekitcontrolname->FileIO->HTTPConnect(const
UnicodeString ServerName, const UnicodeString ProxyName, short
PortNo, bool HTTPS, const UnicodeString UserName, const
UnicodeString Password)
[Delphi] [ Boolean =
]imagekitcontrolname.FileIO.HTTPConnect(const
ServerName: string; const ProxyName: string; PortNo: Smallint;
HTTPS: Boolean; const UserName: string; const Password:
string)
Parameters
Name | Explanation |
---|---|
ServerName | The name of the HTTP(S) server or IPAddress |
ProxyName | The Proxy Server IP Address |
PortNo | Port Number (default HTTP port is 80; default HTTPS port is 443) |
HTTPS | Sets the type of server [False HTTP, True HTTPS] |
UserName | The username needed to access the HTTP(S) server |
Password | The password needed to access the HTTP(S) server |
Return Value
Returns True if successful. Returns False if unsuccessful.
Explanation
The HTTPConnect method connects to the HTTP(S) server. This method can only be executed from the client computer. It does not operate on the server. After this method has connected to the HTTP(S) server, it is possible to use the HTTPGetFileEx and the HTTPPutFileEx methods.
When not using a proxy server set the ProxyName to an empty string.