dimanche 26 février 2017

Can I get response headers from javascript?

var script = document.createElement('script');
script.src = "http://ift.tt/1hR1erU";
document.documentElement.appendChild(script);

I load it, But I wish to know response headers of loading script:

date: Sun, 26 Feb 2017 00:00:00 GMT
etag: "хххх"
status: 200

Do you know ways to get such data?




Aucun commentaire:

Enregistrer un commentaire