Skip to content

Instantly share code, notes, and snippets.

@maagmirror
Created April 16, 2020 18:01
Show Gist options
  • Save maagmirror/1627d2cb6c37a8a04240cab0e00fa96f to your computer and use it in GitHub Desktop.
Save maagmirror/1627d2cb6c37a8a04240cab0e00fa96f to your computer and use it in GitHub Desktop.
var url = "http://nibiru.com.uy:3000/[email protected]";
function httpGet(url){
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", url + "&token=xxxxx", false ); // false for synchronous request
xmlHttp.send( null );
return xmlHttp.responseText;
}
console.log(httpGet(url));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment