[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-872?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski resolved HTTPCLIENT-872.
------------------------------------------

    Resolution: Fixed

* HttpClient can now persist authentication data between request executions as 
long as they share the same execution context. 
* It has also become much easier to make HttpClient authenticate preemptively 
by pre-populating authentication data cache

Compare old code (4.0):
http://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.0.x/httpclient/src/examples/org/apache/http/examples/client/ClientPreemptiveBasicAuthentication.java
http://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.0.x/httpclient/src/examples/org/apache/http/examples/client/ClientPreemptiveDigestAuthentication.java

with new one (4.1):
http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientPreemptiveBasicAuthentication.java
http://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk/httpclient/src/examples/org/apache/http/examples/client/ClientPreemptiveDigestAuthentication.java

Please review / test / give feedback

> Add preemptive authentication
> -----------------------------
>
>                 Key: HTTPCLIENT-872
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-872
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpAuth
>    Affects Versions: 4.0 Final
>            Reporter: Gerald Turner
>             Fix For: 4.1 Alpha1
>
>         Attachments: PreemptiveAuth.patch
>
>
> Wishlist request for preemptive authentication to be included in the API, 
> like HttpClient 3.x had.  There is an example 
> ClientPreemptiveBasicAuthentication.java that uses HttpRequestInterceptor 
> which I had adapted to my application and it works fine.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to