CERNY.http.Request
This script provides Ajax functionality to send HTTP requests to a server.
Uses
Used by
Functions
Request
This class represents the HTTP request. This is a wrapper to add some convenience and avoid the word XML.
sendAsynch
Send this request asynchronously. The browser will continue to execute the script without waiting for the response.
The parameter
callback
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).
sendSynch
Send this request synchronously. The browser will wait for the response with further execution.
setBody
Set the body of the request, optionally pass the content type of the body. It is recommended to pass the content type.
setHeader
Set a header of the request.

