Node.js examples for Network:Ajax
Send XML Http Request
function sendXMLHttpRequest (url) { var xhr = new XMLHttpRequest(); xhr.open("GET", url, true); // xhr.setRequestHeader(name, value); xhr.onreadystatechange = function () { if (xhr.readyState == 4) { console.log(xhr.responseText); }//from w ww . j av a2s.c om } xhr.send(); }