Q
Q
qu1kgg2020-05-06 21:14:22
PHP
qu1kgg, 2020-05-06 21:14:22

HTTP response code said error how to deal?

Hello everyone, tell me what the problem is, I'm trying to make a callback api vk on laravel, I did it but I can't send a response, I do it like this:

$data = json_decode(file_get_contents('php://input'));

gives: HTTP response code said error
Tried to replace with:
$httpClient = new \GuzzleHttp\Client();      
        $url = 'php://input';
        $res = $httpClient->request('GET', $url);
      $data = json_decode ($res->getBody(), true);

It shows in the lara logs: The https protocol is not supported or disabled in libcurl , but I looked and there is https in curl, where to look for an error?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question