2017-05-09 62 views
2
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(); 
} 

捲曲錯誤35:在連接未知SSL協議錯誤(見http://curl.haxx.se/libcurl/c/libcurl-errors.html)186 /無功/網絡/ API /供應商/ guzzlehttp /狂飲/ SRC /Handler/CurlFactory.phpLaravel - GuzzleHttp客戶投擲捲曲錯誤35:未知SSL協議錯誤在連接

回答

2

還有很多類似的問題。嘗試使用curl控制檯命令和this article進行調試,因爲沒有一個原因導致錯誤(錯誤是一般的)。

相關問題