[ 
https://issues.apache.org/jira/browse/JENA-576?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15392019#comment-15392019
 ] 

ASF GitHub Bot commented on JENA-576:
-------------------------------------

Github user afs commented on the issue:

    https://github.com/apache/jena/pull/151
  
    I came across "preemptive authentication" for HttpClient which apparently 
does not a preconfigured `HttpClient`.
    
    [HttpComponents 4.5.x tutorial section, 
4.6](https://hc.apache.org/httpcomponents-client-4.5.x/tutorial/html/authentication.html#d5e717)
    
    It works pre-populating the authentication data cache and calling:
    
    ```
    CloseableHttpResponse response = httpclient.execute(target, http-request, 
HttpClientContext);
    ```
    It's not quite the style of 
`org.apache.jena.atlas.web.auth.HttpAuthenticator` but it's close.
    
    Would this be better than `HttpClientBuilder`+`HttpAuthenticator`?  Mu 
first impression is that it is much the same - just different.


> Upgrade Apache HTTP Client to 4.3
> ---------------------------------
>
>                 Key: JENA-576
>                 URL: https://issues.apache.org/jira/browse/JENA-576
>             Project: Apache Jena
>          Issue Type: Dependency upgrade
>          Components: ARQ
>    Affects Versions: Jena 2.11.0
>            Reporter: Rob Vesse
>            Assignee: Rob Vesse
>            Priority: Minor
>   Original Estimate: 72h
>  Remaining Estimate: 72h
>
> As of 2.11.0 ARQ centralizes all HTTP operations through HttpOp which relies 
> on Apache HTTP Client.  Currently we are using 4.2.3 while the latest stable 
> release is actually 4.3.1
> Therefore we should look at upgrading our code to use the latest version 
> which may entail some refactoring since there appears to have been some 
> breaking changes across the minor version bump which users have seen in usage 
> - e.g. 
> https://github.com/pyvandenbussche/sparqles/issues/9#issuecomment-27220738



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to