5
use GuzzleHttp\Client;

try {    
    $this->client = new Client(['base_uri'=>'']);  
    $responseData = $this->client->request('URL',[
        'verify'  => false,
        'headers' => [
            'Accept'       => 'application/json',
            'Content-Type' => 'application/json',
            ],  
    ]);
} catch (\Exception $ex) {
    echo $ex->getMessage()." ".$ex->getLine()." ".$ex->getFile();
}

cURL error 35: Unknown SSL protocol error in connection (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) 186 /var/www/api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php

1 Answer 1

1

There are many similar questions already. Try to debug it with curl console command and this article, because there is not one reason for the error (the error is general).

Sign up to request clarification or add additional context in comments.

2 Comments

would love to see solution.
As I said above, the error is general, it can be caused by many reasons. So no solution without additional debug info.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.