-d flag with the
curl command in your terminal is cool, but using
curl <endpoint> -d @<file-name> is cooler.
@ syntax allows you to pass a file as the data, and it works for the other
--data-<type> commands, like
If you want to pass an
@ in the data without this special interpretation, you can use