Skip to content

Commit

Permalink
issue #3 - CURLOPT_FOLLOWLOCATION vs open_basedir:
Browse files Browse the repository at this point in the history
  set default to false
  • Loading branch information
zbxwallboard committed Nov 18, 2018
1 parent da47411 commit 11137f1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions classes/RemoteData.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,13 @@ private function api_curl($URL, $DATA) {
$HEADERS[] = 'User-Agent: ZbxWallboard';

$CURL_OPTS = array(
CURLOPT_RETURNTRANSFER => true, // Allows for the return of a curl handle
CURLOPT_TIMEOUT => 30, // Maximum number of seconds to allow curl to process the entire request
CURLOPT_CONNECTTIMEOUT => 5, // Maximm number of seconds to establish a connection, shouldn't take 5 seconds
CURLOPT_SSL_VERIFYHOST => false, // Incase we have a fake SSL Cert...
CURLOPT_SSL_VERIFYPEER => false, // Ditto
CURLOPT_FOLLOWLOCATION => true, // Incase there's a redirect in place (moved zabbix url), follow it automatically
CURLOPT_FRESH_CONNECT => true, // Ensures we don't use a cached connection or response
CURLOPT_RETURNTRANSFER => true, // Allows for the return of a curl handle
CURLOPT_TIMEOUT => 30, // Maximum number of seconds to allow curl to process the entire request
CURLOPT_CONNECTTIMEOUT => 5, // Maximm number of seconds to establish a connection, shouldn't take 5 seconds
CURLOPT_SSL_VERIFYHOST => false, // Incase we have a fake SSL Cert...
CURLOPT_SSL_VERIFYPEER => false, // Ditto
CURLOPT_FOLLOWLOCATION => false, // Incase there's a redirect in place (moved zabbix url), follow it automatically
CURLOPT_FRESH_CONNECT => true, // Ensures we don't use a cached connection or response
CURLOPT_ENCODING => 'gzip',
CURLOPT_HTTPHEADER => $HEADERS,
CURLOPT_CUSTOMREQUEST => 'POST',
Expand Down

0 comments on commit 11137f1

Please sign in to comment.