- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function http_connect(const address: string): HTTPConnection;
Arguments:
-
address |
HTTP server address string. Valid syntax: 'host:port', 'host'. Host can be host name or IP address as dotted quad. |
Description:
-
This function connects with HTTP server. You can customize request headers and data using http_put_header, http_set_header and http_post functions or send the request immediately with http_request function.
Returns:
-
Valid HTTP connection handle on success or NIL (NULL) pointer on error.
Usage:
-
cp := http_connect('www.freepascal.org');
See also:
-
http_close.
|