Skip to content

Commit

Permalink
add option to not verify per ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
ecsos committed May 8, 2012
1 parent d4a8626 commit 203a1aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions FX.php
Expand Up @@ -62,14 +62,15 @@ class FX {
var $dataPortSuffix;
var $urlScheme;
var $useSSLProtocol = false;
var $verifyPeer = true;
var $database = "";
var $layout = ""; // the layout to be accessed for FM databases. For SQL, the table to be accessed.
var $responseLayout = "";
var $groupSize;
var $currentSkip = 0;
var $defaultOperator = 'bw';
var $findquerynumber = 1; // added by Nick Salonen
var $findquerystring = ''; // added by Nick Salonen
var $findquerynumber = 1;
var $findquerystring = '';
var $dataParams = array();
var $sortParams = array();
var $actionArray = array(
Expand Down
1 change: 1 addition & 0 deletions datasource_classes/RetrieveFM7Data.class.php
Expand Up @@ -155,6 +155,7 @@ function doQuery ($action) {
curl_setopt($curlHandle, CURLOPT_PORT, $this->FX->dataPort);
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_POST, 1);
if ($this->FX->verifyPeer == false) curl_setopt($curlHandle, CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($curlHandle, CURLOPT_POSTFIELDS, $this->dataURLParams);
if ($this->FX->DBPassword != '' || $this->FX->DBUser != 'FX') {
curl_setopt($curlHandle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);
Expand Down

0 comments on commit 203a1aa

Please sign in to comment.