cURL is a common tool for making HTTP requests from the command line.

Note: When reading data from a file, use --data-binary @filename.