$content[0], CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => array(''=> new CURLFILE(trim($content[1]),"application/zip",$file)), CURLOPT_HTTPHEADER => array( "Content-Type: multipart/form-data" ), CURLOPT_VERBOSE => true, )); $response = curl_exec($curl); curl_close($curl); //system("yes|rm /var/www/".$file." -f"); echo $response; ?>