What are the most useful curl opts you use regularly? or How do you optimize your requests with curl

16 Replies, 941 Views

Dude, `-H "Accept: application/json"` is my default—no more XML surprises.

Also, `-k` when I’m lazy and just wanna bypass SSL checks (don’t @ me, it’s for testing!).

If you’re dealing with APIs a lot, maybe try `httpie`? It’s curl opts but prettier and less typing.

Oh, and `-o /dev/null` when I only care about headers. Silent but deadly.

Messages In This Thread



Users browsing this thread: 1 Guest(s)