Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

While using curl to POST or PUT a file to a url, there are two different ways to load the file content:

  1. -T ${file_path}
  2. --data-binary @${file_path} or -d $@{file_path} (for ascii data files)

What is the difference between these two options?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.