-O, –remote-name: save the file with remote filename-o, –no-remote-name: save the file as the name provided-L, –location: follow 3xx redirect-#, –progress-bar: show download progress-X, –request: specify request method-F, –form: multipart post-f, –fail: Fail silently (no output at all) on server errors. This is mostly done to enable scripts etc to better deal with failed attempts.-k, –insecure: ignore SSL certificatecurl -O -C -
cat file.json | curl --request POST https://httpbin.org/post --data-binary @-
curl --request POST https://httpbin.org/post -F X=1
curl -X POST https://httpbin.org/post -F 'file=@filename.txt'