Difference between revisions of "InitializeHTTPClient"
From SCAR Divi Manual
(→Example) |
(→Description) |
||
Line 8: | Line 8: | ||
==Description== | ==Description== | ||
− | This function creates a new HTTP connection and returns the index to it in the HTTP resource manager. You can specify whether it has to handle cookies and/or redirects by | + | This function creates a new HTTP connection and returns the index to it in the HTTP resource manager. You can specify whether it has to handle cookies and/or redirects by passing [[true]] for [[boolean]] parameters '''HandleCookies''' and/or '''HandleRedirects'''. |
==Example== | ==Example== |
Revision as of 19:10, 26 June 2011
Definition
function InitializeHTTPClient(const HandleCookies, HandleRedirects: Boolean): Integer;
Availability
SCAR Divi 3.00 > Current
Description
This function creates a new HTTP connection and returns the index to it in the HTTP resource manager. You can specify whether it has to handle cookies and/or redirects by passing true for boolean parameters HandleCookies and/or HandleRedirects.
Example
var i: Integer; begin i := InitializeHTTPClient(True, True); try WriteLn(GetHTTPPage(i, 'http://www.google.com/')); finally FreeHTTPClient(i); end; end.