Sync
This commit is contained in:
parent
6f050a029e
commit
776bba907c
3887 changed files with 59894 additions and 7280 deletions
6
Task/HTTPS/JavaScript/https.js
Normal file
6
Task/HTTPS/JavaScript/https.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
(function(url,callback){//on some browsers you can check certificate information.
|
||||
xhr=new XMLHttpRequest();
|
||||
xhr.open('GET',url,true);
|
||||
xhr.onreadystatechange=function(){if(xhr.readyState==xhr.DONE){callback(xhr)}};
|
||||
xhr.send();
|
||||
})('https://sourceforge.net',function(xhr){console.log(xhr.response)})
|
||||
Loading…
Add table
Add a link
Reference in a new issue