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错误35:连接中未知的SSL协议错误(请参阅http://curl.haxx.se/libcurl/c/libcurl-errors.html)186 /var/www/api/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php