What is the curl -I (uppercase i) flag and what does it do?

Photo by Gabriel Heinzer on Unsplash.

If you’re here, then you’re probably wondering what in the world this -I flag in your curl command is.

To level-set us, the curl command is a command-line tool to transfer data over different kinds of network protocols.

For instance, let’s take a look at the below

curl https://www.google.com



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Tremaine Eto

Tremaine Eto

Senior Software Engineer @ Iterable | Previously worked at DIRECTV, AT&T, and Tinder | UCLA Computer Science alumni | Follow me for software engineering tips!