====== InternetRequest ======

InternetRequest is part of the core functionality added with [[PlayDirect]]

===== Public Static Methods =====

==== DownloadBinary ====
Overloaded. Downloads a URL as binary data, with the given caching rule.

==== DownloadHTML ====
Overloaded. Downloads HTML (text) from a URL with caching and default text encoding.

Simple Example - appears to automatically pass default cookie (Unconfirmed)


url = "http://cnn.com"
resp = InternetRequest.DownloadHTML(url) --Returns an InternetResponse object
html = tostring(resp.HTML) --Use the HTML property of the InternetResponse object


==== GetCookie ====
Gets a cookie for the given url.

==== Post ====
Overloaded. Posts data to a URL.

==== SetCookie ====
Sets a cookie for the given url.


url = "http://www.fullpathtothe.url";
cookie_username = "my_name";
cookie_timestamp = "1323342445";
InternetRequest.SetCookie(url, "username", cookie_username);
InternetRequest.SetCookie(url, "timestamp", cookie_timestamp);

===== Public Instance Methods =====

==== Dispose ====
Overloaded. Dispose of resources.

==== DownloadURL ====
Downloads data from the bound url.

===== Protected Instance Methods =====

==== Dispose ====
Overloaded. Dispose of the internet request.

==== Finalize ====
Finalize the internet request.