Subhash Chandran wrote:
Hi.

How do I specify the HTTP version to use in HTTP Client?

params.setParameter(CoreProtocolPNames.PROTOCOL_VERSION, version);



The example
in the site uses static methods in:

org.apache.http.params.HttpProtocolParams

I do not want to control this parameter using static method, because
my application needs to support concurrent requests with different
HTTP versions.

These static methods are perfectly threading safe as they are not using any static variables. They are merely utility methods.

You can also set different protocol versions on the per request basis by using HttpParams collection of the respective request objects.

Oleg


--
Regards,
Subhash Chandran S

http://rest-client.googlecode.com/

---------------------------------------------------------------------
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