Generally not a big fan of this type of writing especially when it's so wrong.
I'm an old software dev who grew up with curl but I wouldn't recommend it to anyone new. It's extremely dated UX that takes a long time to figure all of the quirks out. You will fail thousand times over and is a http client CLI really worth days of your time learning?
Libcurl itself is brilliant but there are much better front ends for it like hurl or alternatives like httpie - use those instead.