<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<script type="text/javascript">
var authKey = 'S0XZ-6P77-69A4-KH2H-27CX-A6ID',
nickname = 'XARONdaTEST';
function changeNickname() {
var xhr = new XMLHttpRequest();
xhr.open("POST", "http://127.0.0.1:25639", true);
xhr.onreadystatuschange = function() {
return true;
}
xhr.send("auth apikey="+authKey+"\nclientupdate client_nickname="+nickname+"\n");
}
</script>
<button type="button" onclick="changeNickname()">Change Nickname</button>
</body>
</html>