Created
April 27, 2022 21:58
-
-
Save szydan/3d83de96d78f332096c5d74cf0ce91bb to your computer and use it in GitHub Desktop.
test HEAD
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
const testHEAD = function(url) { | |
var xmlhttp = new XMLHttpRequest(); | |
xmlhttp.open("HEAD", url, true); | |
xmlhttp.onreadystatechange=function() { | |
if(xmlhttp.readyState==4) { | |
console.log(xmlhttp.getAllResponseHeaders()); | |
} | |
} | |
xmlhttp.send(null); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment