A bot used for https://code-your-snake.codingmaster398.repl.co/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
411 B
16 lines
411 B
var sys = require('util');
|
|
var XMLHttpRequest = require("xmlhttprequest").XMLHttpRequest;
|
|
|
|
var xhr = new XMLHttpRequest();
|
|
|
|
xhr.onreadystatechange = function() {
|
|
console.log("State: " + this.readyState);
|
|
|
|
if (this.readyState == 4) {
|
|
console.log("Complete.\nBody length: " + this.responseText.length);
|
|
console.log("Body:\n" + this.responseText);
|
|
}
|
|
};
|
|
|
|
xhr.open("GET", "http://driverdan.com");
|
|
xhr.send();
|
|
|