Subhash Chandran wrote:
Again, in Commons HTTP Client 3.x I used:

client.getParams().setAuthenticationPreemptive(true);

How do I set this in HTTP Client 4.x?

Support for preemptive authentication can be added using a custom protocol interceptors as shown in this example:

http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/module-client/src/examples/org/apache/http/examples/client/ClientPreemptiveBasicAuthentication.java

Oleg

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to