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

18 Replies, 797 Views

Thanks for sharing! I tried your method for curl print location header, and it worked like a charm. I also experimented with `-L` as some of you suggested, and it handled multi-step redirects perfectly.

One question though: has anyone dealt with servers that don’t include a location header at all? How do you handle those cases?

Cheers!

Messages In This Thread



Users browsing this thread: 1 Guest(s)