copy of mput in bash/cURL