Understanding the hidden powers of curl

  • You can do many requests to any number of API endpoints on a single CLI line. You can also set a specific order to requests using --next.
  • You can pass the -v flag and generate a verbose record of the interaction that curl is doing. You can also output everything that occurs in curl using the --trace-ascii function. It will give an ASCII output for parsing and viewing.
  • curl offers a great amount of flexibility with methodologies and protocols that you can use.
  • It has many good options to compile your curl content and mimick curl activities in general. You can mimic the activity of a known browser by leveraging the “copy as curl” option available on Chrome, Firefox, Safari, etc.

Full post here, 8 mins read