XMLHttpRequest (Send/Receive HTML Pages)
(Windows only)
This class allows the use of the standard XMLHttpRequest
functions that allow the posting and receiving of HTML pages.
Usage
To use the XMLHttpRequest
class you must first create an instance of the class:
var http = new XMLHttpRequest;
You can now use the HTTP object to invoke the various functions below.
Functions
| (As of 3.2.001.03) Represents the state of the request. Essential for "async" calls. Get data when it is "4" (COMPLETED). Values: 0 (UNINITIALIZED): The object has been created, but not initialized (the open method has not been called). |
| (As of 3.2.001.03) Represents the HTTP status code returned by a request. |
| (As of 3.2.001.03) Represents the HTTP response line status. |
| Get all response header name/value pairs. This routine returns all name/value pairs in a single string. Each pair is delimited by a carriage return/linefeed (CR/LF) sequence. |
| Get a single named response header value. |
http.open() | Open a link to an HTTP web site. |
http.send() | Send the request and receive a response. |
http.setRequestHeader() | Add a custom HTTP header. |
http.responseText | Get the textual response made by the invoked URL. See the example under http.responseText . |