Skip to content

Instantly share code, notes, and snippets.

@lkLeonov
Last active December 11, 2016 09:36
Show Gist options
  • Save lkLeonov/ee026d05266ad53e95940af2894f65c3 to your computer and use it in GitHub Desktop.
Save lkLeonov/ee026d05266ad53e95940af2894f65c3 to your computer and use it in GitHub Desktop.
var xhr = new XMLHttpRequest();
var body = 'act=load_idols&al=1&oid=50595075';
xhr.open("POST", 'https://vk.com/al_fans.php', true)
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded')
xhr.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
console.log(this.responseText)
}
};
xhr.send(body);
// https://gist.github.com/lkLeonov/b891fa8d157b6d62ff625723c8684f27 UPDATED
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment