Sep 042011
Post a file to a server using the Curl command
Answer:
You can simulate a HTTP form post, with a file being uploaded to a remote server using the curl command.
curl -F 'photo=@/upload/image.jpg' http://example.com/upload.php
Assume the name of the form element of your upload is called "photo"