On Wed, Jul 08, 2009 at 04:53:36PM -0700, Ken Krugler wrote:
>
> Since Michael wanted to change the user agent on a per-request basis,  
> what would be the appropriate way to do this using http.useragent?
>
> In my code, I use this (via HttpParams) to configure the  
> ThreadSafeClientConnManager that is then used when creating my  
> DefaultHttpClient.
>
> This seemed like a static one-time setup. Is there a way to use  
> HttpParams to change values on a per-request basis?
>

Virtually any parameter in HttpClient 4.0 can be overridden on the HTTP request
level.

http://hc.apache.org/httpcomponents-client/tutorial/html/fundamentals.html#d4e316

Hope this helps

Oleg


> [snip]
>
> Thanks,
>
> -- Ken
> -- 
> Ken Krugler
> +1 530-210-6378
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

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

Reply via email to