Refactor _check_redirect into _check_headers and _get_content.
Check headers before retrieving the both headers and content.