[hotfix] Ignore type checking for edge
[platform/framework/web/wrtjs.git] / device_home / node_modules / xmlhttprequest-ssl / example / demo.js
1 var sys=require("util"),XMLHttpRequest=require("xmlhttprequest").XMLHttpRequest,xhr=new XMLHttpRequest;xhr.onreadystatechange=function(){sys.puts("State: "+this.readyState),4==this.readyState&&(sys.puts("Complete.\nBody length: "+this.responseText.length),sys.puts("Body:\n"+this.responseText))},xhr.open("GET","http://driverdan.com"),xhr.send();