What’s the Best curl Option to Handle Redirects? or How Do You Use the --data curl Option for POST Re

18 Replies, 1101 Views

"What’s the Best curl Option to Handle Redirects?"

Hey folks!

I keep running into redirects when using curl, and it’s kinda annoying. What’s the best curl option to handle these automatically?

I’ve tried `-L` or `--location`, but sometimes it feels like it’s not following all the hops. Am I missing something? Or is there another curl option that works better?

Also, does `-L` have any quirks I should know about? Like, does it mess with headers or anything?

Thanks in advance!

---

Bonus casual vibe:
*"Pls halp, my curls are going in circles lol."*

Messages In This Thread
What’s the Best curl Option to Handle Redirects? or How Do You Use the --data curl Option for POST Re - by - 19-05-2024, 04:22 PM



Users browsing this thread: 1 Guest(s)