curl -sIL https://example.com | grep -E '^(HTTP|location)'