report curl error for post and files
code consistency