Show the redirect location without fully following it.
Section: cURL Debugging Patterns
Print redirect target
bash
bash
curl -s -o /dev/null -D - https://example.com | grep -i '^location:'Explanation
Useful for checking 301, 302, 307, and 308 behavior.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing cURL Debugging Patterns