Hey, that’s a clever way to curl print location header! I usually use `-I` and `grep` like others mentioned, but your method is way more elegant for scripting.
One edge case: some servers don’t include the location header in the first response. In those cases, `-L` is a must.
One edge case: some servers don’t include the location header in the first response. In those cases, `-L` is a must.
