Answer the question
In order to leave comments, you need to log in
How to fix an error in working with the API?
A long time ago I wrote an authorization script with one site and everything worked as it should.
And now it's broken. I didn't change anything myself.
Here is the code:
$post_data = json_encode(["email" => $mail,"password" => 'password123456']);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lampyre.io/api/1.5/accounts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $post_data
]);
$response = curl_exec($curl);
curl_close($curl);
<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 —>
Answer the question
In order to leave comments, you need to log in
Put up protection. How to bypass? Experiment. From other IPs, with normal headers and stuff like that
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question