Skip to content

Instantly share code, notes, and snippets.

@codenamejason
Last active August 29, 2015 14:16
Show Gist options
  • Save codenamejason/e63fc2469cb07e58fb7b to your computer and use it in GitHub Desktop.
Save codenamejason/e63fc2469cb07e58fb7b to your computer and use it in GitHub Desktop.
Check site status
The four verbs of API's
1. GET
2. PUT
3. POST
4. DELETE
var xhr = new XMLHTTPRequest();
xhr.open("GET", " web address", false);
xhr.send();
console.log(xhr.satus);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment