Difference between revisions of "InitializeHTTPClient"
From SCAR Divi Manual
(Created page with "==Definition== <func>function InitializeHTTPClient(const HandleCookies, HandleRedirects: Boolean): Integer;</func> ==Availability== SCAR Divi 3.00 > Current ==Description== Thi...") |
(→Description) |
||
Line 6: | Line 6: | ||
==Description== | ==Description== | ||
− | This funciton creates a new HTTP connection and returns the index to it in the HTTP resource manager. You can specify whether it has to handle | + | This funciton 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 setting the '''HandleCookies''' and/or '''HandleRedirects''' to true. |
==Example== | ==Example== |
Revision as of 09:36, 26 June 2011
Definition
<func>function InitializeHTTPClient(const HandleCookies, HandleRedirects: Boolean): Integer;</func>
Availability
SCAR Divi 3.00 > Current
Description
This funciton 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 setting the HandleCookies and/or HandleRedirects to true.
Example
var i: Integer; begin i := InitializeHTTPClient(True, True); try WriteLn(GetHTTPPage(i, 'http://www.google.com/')); finally FreeHTTPClient(i); end; end.