On Mon, 2010-04-26 at 14:44 +0200, [email protected]
wrote:
> Hi,
> 
> I'm using the httpclient 4.0.1 library in an application and I've been 
> looking for a way to set default parameters, but haven't found it in the 
> 4.x API.
> I could set the user-agent after each creation of HttpClient, but then 
> third party libraries I use (oauth-signpost) that use httpclient don't 
> have the user-agent set.
> Is there a way to set default parameters?
> 
> Kind regards,
> - Willem van Engen
> 

Willem,

HttpClient 4 does not provide a means of setting global parameters. You
can provide a custom HttpClient implementation that pre-populates
certain default parameters upon instantiation and use this class across
your application. Those parameters, however, will not apply to 3rd party
libraries if they create HttpClient instances internally.

Oleg


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to