ixudra / curl

Custom PHP curl library for the Laravel 5 framework - developed by Ixudra
MIT License
561 stars 128 forks source link

CURLOPT_SSL_VERIFYHOST | CURLOPT_SSL_VERIFYPEER #131

Closed Valadanchik closed 2 years ago

Valadanchik commented 2 years ago

How may I add these options ?

elimentz commented 2 years ago

This is described here in the documentation:


    use Ixudra\Curl\Facades\Curl;

    // Send a GET request to http://www.foo.com/bar and return a response object with additional information
    $response = Curl::to('http://www.foo.com/bar')
        ->withOption('SSL_VERIFYHOST', $verifyHost)
        ->withOption('SSL_VERIFYPEER', $verifyPeer)
        ->get();
Valadanchik commented 2 years ago

thanks