Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 1 column, instead of 3. in line 2.
function httpGet(theUrl){
var xmlHttp = new XMLHttpRequest(); 'GET', theUrl, false ); // false for synchronous request
//xmlHttp.setRequestHeader() debe ir después de
xmlHttp.setRequestHeader('nombreHeader', 'valor');
//pero antes de xmlHttp.send()
xmlHttp.send( null );
return xmlHttp.responseText;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.