What is the -X flag in a curl command?

Tremaine Eto
Dev Genius
Published in
3 min readDec 6, 2022

--

Photo by Kevin Horvat on Unsplash.

Ever seen the -X flag in a curl command?

You probably have — it’s one of the more common ones, and after all, you’re here reading this post, aren’t you?

Well, let’s get straight to what it is.

What the man page says

If you take a look at what the man page says, it’ll give you this:

--

--

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