origRequest.addAllHeaders(addedHeaders);
HttpRequest req = new HttpRequest(Uri.parse(
"http://www.example.org/data.html"));
req.removeHeader(HttpRequest.DOS_PREVENTION_HEADER);
req.addHeader("h1", "hello");
req.addHeader("Content-Length", "10");
req.addHeader("unchanged_header", "original_value");
UriUtils.copyRequestHeaders(origRequest, req,
UriUtils.DisallowedHeaders.POST_INCOMPATIBLE_DIRECTIVES);