Always check if we have a valid Http(s)UrlConnection.
Don't capitalize "bearer" token_type.