private static void placeHeaderOnGetRequest(HttpGet get, String httpRequestHeader) {
        int idxOfEquals = httpRequestHeader.indexOf(':');
        if (idxOfEquals == -1) {
            return;
        }
        String headerKey = httpRequestHeader
                .substring(0, idxOfEquals)
                .trim();
        String headerValue = httpRequestHeader
                .substring(idxOfEquals + 1)
                .trim();
        get.setHeader(headerKey, headerValue);
    }
If there were redirects, this captures the final URL visited
tika-pipes/tika-fetchers/tika-fetcher-http/src/main/java/org/apache/tika/pipes/fetcher/http/HttpFetcher.java