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

18 Replies, 1097 Views

Good stuff! For curl print location header, I’ve found that `-w` can be tricky with non-ASCII URLs. If you run into encoding issues, try `--raw` to avoid curl messing with the output.

Also, `curl -v` is a lifesaver for debugging redirect chains.

Messages In This Thread



Users browsing this thread: 1 Guest(s)