Skip to content

Instantly share code, notes, and snippets.

@CB9TOIIIA
Created September 7, 2017 17:32
Show Gist options
  • Save CB9TOIIIA/8c16b99e212e91083184861e3347d292 to your computer and use it in GitHub Desktop.
Save CB9TOIIIA/8c16b99e212e91083184861e3347d292 to your computer and use it in GitHub Desktop.
Отключить SSL cURL
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $POZVONIM_Post_Call);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, $jsondataCall);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 2);
$resultPostCall = curl_exec($ch);
curl_close($ch);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment