X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2FttFileHelper.class.php;h=c69439d608d00cbc0bebb223f1746eb5f44560f9;hb=75a1eedb8977b8f2db459128bab9aaf367e3b58b;hp=997634fea12e8c86f3c1de17a2e492a00701604f;hpb=70e77a95ac584db9d220b8f6d791baa0de084734;p=timetracker.git diff --git a/WEB-INF/lib/ttFileHelper.class.php b/WEB-INF/lib/ttFileHelper.class.php index 997634fe..c69439d6 100644 --- a/WEB-INF/lib/ttFileHelper.class.php +++ b/WEB-INF/lib/ttFileHelper.class.php @@ -79,7 +79,7 @@ class ttFileHelper { // Set the url, number of POST vars, POST data. curl_setopt($ch, CURLOPT_URL, $this->register_uri); - curl_setopt($ch, CURLOPT_POST, count($fields)); + curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @@ -152,7 +152,7 @@ class ttFileHelper { // Set the url, number of POST vars, POST data. curl_setopt($ch, CURLOPT_URL, $this->putfile_uri); - curl_setopt($ch, CURLOPT_POST, count($fields)); + curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @@ -230,7 +230,7 @@ class ttFileHelper { // Set the url, number of POST vars, POST data. curl_setopt($ch, CURLOPT_URL, $this->deletefile_uri); - curl_setopt($ch, CURLOPT_POST, count($fields)); + curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @@ -304,7 +304,7 @@ class ttFileHelper { // Set the url, number of POST vars, POST data. curl_setopt($ch, CURLOPT_URL, $this->deletefiles_uri); - curl_setopt($ch, CURLOPT_POST, count($fields)); + curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); @@ -466,7 +466,7 @@ class ttFileHelper { // Set the url, number of POST vars, POST data. curl_setopt($ch, CURLOPT_URL, $this->getfile_uri); - curl_setopt($ch, CURLOPT_POST, count($fields)); + curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);