os/net/ CURL


POST

The general form of the curl command for making a POST request is as follows:

curl -X POST [options] [URL]

To post a file:

curl -X POST -F 'image=@/home/user/Pictures/wallpaper.jpg' http://example.com/upload

To post raw data:

curl -X POST -H "Content-Type: text/plain" --data "this is raw data" http://78.41.xx.xx:7778/