HTTPTools.putXML
See HTTPTools.postXML which works similar to this HTTP PUT method.
- Documentation
- › API
- › Global objects API
- › HTTPTools.putXML
HTTPTools.putXML( uri : String, doc : XMLDocument[, encoding : String][, callback : Function][, headers : Object]) : String
: String, doc : XMLDocument[, encoding : String][, callback : Function][, headers : Object]) : StringArguments
- uri
- String. The uri to
PUTthe xmlDocument to. - doc
- XMLDocument. The DOM document that will be send to the given uri.
- encoding
- String. The text encoding for the serialized document, e.g. UTF-8. (Optional)
- callback
- Function. The function that is called when the server response is received. The function is called with a single argument, the native XMLHTTPRequest object. (Optional)
- headers
- Object. A list of headers to send with the request. This can be used to construct request in more specific ways for specific servers. For example
{Accept: "application/json"}. (Optional)