我想在代码中将ssl链接调用为laravel。有时,调用此链接不会恢复任何响应。服务器上有限制吗? 这是我的代码::
$ url =“ https://185.109.251.240:22498/api/v1/dialout/clicktodial.php?session_id= $ sessionId&number1 = $ userMobile&number2 = $ adviserMobile&maxduration = $ maxDurationToMs”;
$client = new Client();
try {
$res = $client->request('GET', "$url",
[
'verify'=>false
]
);
return response()->json(['success'=>$call]);
} catch (Exception $e) {
return response()->json(['error'=>$call]);
}