'content' => $content === null ? $content : json_encode($content),
'header' => 'Content-Type: application/json',
'ignore_errors' => 1, // available since PHP 5.2.10
+ 'follow_location' => 0,
+ 'max_redirects' => 0,
))));
if (!$file) {
$this->error = $php_errormsg;
'content' => $this->isQuerySelectLike($query) ? "$query FORMAT JSONCompact" : $query,
'header' => 'Content-type: application/x-www-form-urlencoded',
'ignore_errors' => 1, // available since PHP 5.2.10
+ 'follow_location' => 0,
+ 'max_redirects' => 0,
))));
if ($file === false) {
'method' => 'POST', // may not fit in URL with GET
'content' => $query,
'ignore_errors' => 1, // available since PHP 5.2.10
+ 'follow_location' => 0,
+ 'max_redirects' => 0,
))));
if (!$file) {
$connection->error = $php_errormsg;