Last active
February 5, 2017 06:17
-
-
Save delor34n/9581544875048d90ca20b4f40ece1dbe to your computer and use it in GitHub Desktop.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function httpGet(theUrl){ | |
var xmlHttp = new XMLHttpRequest(); | |
xmlHttp.open( 'GET', theUrl, false ); // false for synchronous request | |
//xmlHttp.setRequestHeader() debe ir después de xmlHttp.open() | |
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