Hello everyone! I'm trying to replace the value of some of my default headers on a per request basis, but I'm not sure how to do this.
I'm setting the default headers on the client using : client.getParams().setParameter(ClientPNames.DEFAULT_HEADERS, headers); On some requests I need to replace the value of some of the default headers, I do this like so: request.setHeader(HttpHeaders.ACCEPT, "application/json"); When executing the request it has duplicate headers, one with the default value and one with the new value. I would rather want to replace the default value with the new one, how do I do this? /Daniel
