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!
One question though: has anyone dealt with servers that don’t include a location header at all? How do you handle those cases?
Cheers!
