How to Use curl to Print the Location Header in a Response?

18 Replies, 1075 Views

Nice! For curl print location header, I’ve had issues with HTTPS sites that don’t handle redirects properly. Adding `--insecure` can help bypass SSL issues during testing.

Also, `curl -v` is my go-to for debugging. It’s a bit noisy, but you’ll catch everything, including the location header.

Messages In This Thread



Users browsing this thread: 1 Guest(s)