example of using curl to upload file with http post