(PHP 5 >= 5.5.0)
CURLFile peut être utilisé pour télécharger un fichier avec des constantes CURLOPT_POSTFIELDS.
CURLOPT_POSTFIELDS
$filename
$mimetype
$postname
$mime