This script provides Ajax functionality to send HTTP requests to a server.
This class represents the HTTP request. This is a wrapper to add some convenience and avoid the word XML.
Send this request asynchronously. The browser will continue to execute the script without waiting for the response.
is an object that may contain a function for each phases of the request. The name of the property is the number of the phase, so UNSET is "0", OPEN is "1", SENT is "2", LOADING is "3" and DONE is "4". If a function is passed instead of an object, it is interpreted as a callback when the request is done (complete, the response has arrived, a status is available).
Send this request synchronously. The browser will wait for the response with further execution.
Set the body of the request, optionally pass the content type of the body. It is recommended to pass the content type.
Set a header of the request.