Difference between revisions of "InitializeHTTPClient"
From SCAR Divi Manual
(→Description) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
==Definition== | ==Definition== | ||
− | < | + | <source lang="scar" lines="false"> |
+ | function InitializeHTTPClient(const HandleCookies, HandleRedirects: Boolean): Integer; | ||
+ | </source> | ||
==Availability== | ==Availability== | ||
Line 6: | Line 8: | ||
==Description== | ==Description== | ||
− | + | 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== | ||
Line 12: | Line 14: | ||
var | var | ||
i: Integer; | i: Integer; | ||
+ | |||
begin | begin | ||
i := InitializeHTTPClient(True, True); | i := InitializeHTTPClient(True, True); | ||
Line 30: | Line 33: | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Internet Functions]] | [[Category:Internet Functions]] | ||
+ | [[Category:HTTP Functions]] |
Latest revision as of 09:56, 4 July 2011
Definition
function InitializeHTTPClient(const HandleCookies, HandleRedirects: Boolean): Integer;
Availability
SCAR Divi 3.00 > Current
Description
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.