Sending PUT/DELETE data with a XMLHttpRequest
问题 I used the example from Send POST data using XMLHttpRequest to create this JavaScript code: function PostXML(webURL, post_data) { var objHTTP = new ActiveXObject("MSXML2.XMLHTTP"); objHTTP.open("POST", webURL, false); objHTTP.setRequestHeader("Content-Type", "application/xml; charset=utf-8"); objHTTP.setRequestHeader("Accept", "application/xml; charset=utf-8"); objHTTP.setRequestHeader("Content-Length", post_data.length); objHTTP.send(post_data); while((objHTTP.readyState != 4) && (objHTTP