Difference between revisions of "SetHTTPUserAgent"
From SCAR Divi Manual
(Created page with "==Definition== <source lang="scar" lines="false"> procedure SetHTTPUserAgent(const iHttp: Integer; const Agent: AnsiString); </source> ==Availability== SCAR Divi 3.00 > Current ...") |
|||
(One intermediate revision by the same user not shown) | |||
Line 28: | Line 28: | ||
==See Also== | ==See Also== | ||
*[[GetRawHeaders]] | *[[GetRawHeaders]] | ||
+ | *[[SetProxyDetails]] | ||
*[[InitializeHTTPClient]] | *[[InitializeHTTPClient]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Internet Functions]] | [[Category:Internet Functions]] | ||
+ | [[Category:HTTP Functions]] |
Latest revision as of 13:09, 4 July 2011
Definition
procedure SetHTTPUserAgent(const iHttp: Integer; const Agent: AnsiString);
Availability
SCAR Divi 3.00 > Current
Description
Sets the user agent given by Agent for an open HTTP connection specified by iHttp.
Example
var i: Integer; begin i := InitializeHTTPClient(True, True); try SetHTTPUserAgent(i, 'SCAR Divi'); WriteLn(GetHTTPPage(i, 'http://www.google.com/')); finally FreeHTTPClient(i); end; end.