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

18 Replies, 829 Views

Yo, `-L` is the way, but if it’s not working, maybe the server’s doing something funky? Try `-v` to see where it’s failing.

Also, check if the redirects are HTTP/HTTPS mixed—curl can be picky about that. If you’re still stuck, maybe share the verbose output here?

Pro tip: `curl -L --head` will show you just the headers + redirects, which can help narrow it down.

Messages In This Thread



Users browsing this thread: 1 Guest(s)