private static void parseHeaderAndPutOnRequest(HttpGet get, String httpRequestHeader) {
        String[] parts = httpRequestHeader
                .trim().split(":", 2);
        if (parts.length >= 2) {
            String key = parts[0].trim();
            String value = parts[1].trim();
            get.setHeader(key, value);
        }
    }
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