URLRequest
The URLRequest object captures all of the information in a single HTTP request. URLRequest objects are passed to the load() methods of the Loader and URLLoader objects, and to other loading operations, to initiate URL downloads.
Can be created with method new:
Lib.Media.Net.URLRequest.new(url) |
Creates a URLRequest object. |
url - (default = nil) - The URL to be requested. You can set the URL later by using the url property. |
Created URLRequest object has properties:
url |
The URL to be requested. |
userAgent |
Specifies the user-agent string to be used in the HTTP request. |
requestHeaders |
The array of HTTP request headers to be appended to the HTTP request. |
method |
Controls the HTTP form submission method. (URLRequestMethod) |
contentType |
The MIME content type of the content in the the data property. |
data |
An object containing data to be transmitted with the URL request. |
followRedirects |
Specifies whether redirects are to be followed (true) or not (false). Default true. |
methods:
launchBrowser() |
Launch native browser |
|
Created with the Personal Edition of HelpNDoc: Easy CHM and documentation editor