Need new option in curl
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 23 Mar 2017 12:10:58 +0000 (08:10 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 23 Mar 2017 12:11:26 +0000 (08:11 -0400)
This is for ignore ssl verify peer

models/front/apis/schedule.php

index a64036f..b25b4ad 100644 (file)
@@ -87,7 +87,9 @@ class GlmMembersFront_apis_schedule
         $curl = curl_init( $url );
         curl_setopt( $curl, CURLOPT_RETURNTRANSFER, true );
         curl_setopt( $curl, CURLOPT_USERPWD, 'dev55:Glm15Keep!' );
+       curl_setopt( $curl, CURLOPT_SSL_VERIFYPEER, false );
         $content = curl_exec( $curl );
+
         curl_close( $curl );
 
         $templateData = array(