Anders' personal cURL cheat sheet
--data/-d because it doesn't mess with newlines etc):
curl https://example.com/dir/filename.bin --data-binary @filename.bin
-T option will make a PUT request. Advantage over
--data-binary is that it doesn't load the entire
file into memory on the client.
curl https://example.com/dir/ -T filename.bin