curl download file with file header code example Example: curl get download file curl http://some.url --output some.file