You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set verify as false use the following snippet.
$requests = array(
'label1'=>array(
'url' => 'https://test.com',
'headers' =>array(
'Content-Type' => 'application/json',),
'options' => array(
'verify' => false,
),
),
)
as per documentation if we set verify to false it should ignore ssl verification but i'm still getting SSL certificate problem: unable to get local issuer certificate. Am I doing something wrong here?
The text was updated successfully, but these errors were encountered:
Reproduced. This seems to be a bug in both the fsockopen transport and the cURL transports.
For cURL The request_multi method does not take into account the verify option at all, moving the needed curl_setopt out of request into setup_handle fixes the issue.
For fsockopen the issue seems a bit more serious. Setting verify to false doesn't work for single requests, see #310
soulseekah
added a commit
to soulseekah/Requests
that referenced
this issue
Feb 11, 2018
The `request_multi` method does not take into account the verify option,
unlike `request`. Moved the verify logic into `setup_handler` which does
all the `curl_setopt` calls anyway and is called from both the multiple
and single request options.
With tests. Contigent on WordPress#310 for fsockopen verify fix.
FixesWordPress#294
Hi,
I'm trying to set verify as false use the following snippet.
$requests = array(
'label1'=>array(
'url' => 'https://test.com',
'headers' =>array(
'Content-Type' => 'application/json',),
'options' => array(
'verify' => false,
),
),
)
as per documentation if we set verify to false it should ignore ssl verification but i'm still getting SSL certificate problem: unable to get local issuer certificate. Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: