Skip to content

Commit

Permalink
Update getProfiles.php
Browse files Browse the repository at this point in the history
  • Loading branch information
adavidw authored Feb 21, 2017
1 parent 3880011 commit edda1cf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions getProfiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
curl_setopt($ch, CURLOPT_POSTFIELDS, $xml->asXML());
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
// The following two curl SSL options are to "false" for ease of development/debug purposes only.
// Any code used in production should either remove these lines or set them to the appropriate
// values to properly use secure connections for PCI-DSS compliance.
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //for production, set value to true or 1
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); //for production, set value to 2
curl_setopt($ch, CURLOPT_DNS_USE_GLOBAL_CACHE, false );
$content = curl_exec($ch);
$profileResponse = new SimpleXMLElement($content);
Expand Down

0 comments on commit edda1cf

Please sign in to comment.