curl -i -s -k  -X $'POST' \
    -H $'Host: lampyre.io' -H $'Connection: close' -H $'Content-Length: 81' -H $'Accept: application/json, text/plain, */*' -H $'Origin: https://lampyre.io' -H $'Sec-Fetch-Dest: empty' -H $'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36' -H $'Content-Type: application/json' -H $'Sec-Fetch-Site: same-origin' -H $'Sec-Fetch-Mode: cors' -H $'Referer: https://lampyre.io/api' -H $'Accept-Encoding: gzip, deflate' -H $'Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7' \
    --data-binary $'{\"email\":\"proverkaproverkaproverkaproverka@gmail.com\",\"password\":\"password12345\"}' \
    $'https://lampyre.io/api/1.5/accounts'HTTP/1.1 403 Forbidden
Server: nginx
Date: Wed, 03 Jun 2020 22:43:35 GMT
Content-Type: text/html
Content-Length: 564
Connection: close
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
<hr><center>nginx</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page --><?
$rand = mt_rand(100000000,99999999999999999);
$json = array("username" => "danieldienes@gmx.de", "password"=>"emily1308", "clientToken"=> $rand);
$json = json_encode($json);
$curl = curl_init();
curl_setopt_array($curl, [
  CURLOPT_URL => "https://authserver.ely.by/auth/authenticate",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => $json,
  CURLOPT_HTTPHEADER => [
    "Accept: application/json",
    "Content-Type: application/json"
  ],
]);
$response = curl_exec($curl);
echo $response;
?>