SHARE
TWEET

Patch

a guest Oct 19th, 2015 384 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     var xmlhttp = new XMLHttpRequest();
  2.     xmlhttp.onreadystatechange = function () {
  3.         if (xmlhttp.readyState == XMLHttpRequest.DONE) {
  4.             console.log(xmlhttp.responseText);
  5.         }
  6.     };
  7.     xmlhttp.open('POST', 'your_url.ext', true);
  8.     xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8');
  9.     query = 'yourquerydata=foo';
  10.     xmlhttp.setRequestHeader("Content-length", query.length);
  11.     xmlhttp.send();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top