I my project written in Laravel I have method that get number value from server:
public static function getAddressApiBalance() { try { $uri = "https://btczexplorer.blockhub.info/ext/getbalance/t1ZYiG4R4n5gTgUKZRgVpKPzG5FYQXpEqga"; $response = Http::get($uri); return $response; ...
And when I call this code I get error in my browser:
cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)
Advertisement
Answer
IlluminateSupportFacadesHttp::withOptions([]) accept guzzlet http options https://docs.guzzlephp.org/en/stable/request-options.html#verify