You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tim te Beek (Jira)" <ji...@apache.org> on 2021/04/26 15:43:00 UTC

[jira] [Commented] (MDOCCK-35) Upgrade Http Client

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

Tim te Beek commented on MDOCCK-35:
-----------------------------------

A first attempt up at https://github.com/apache/maven-docck-plugin/pull/1

Had to move HttpClient builder to execute method, as proxy setup was in execute.

Following redirects seems to be the default, hence no direct 1 to 1 replacement for that.

The only thing I couldn't work out a direct parallel for was preemptive authentication with the proxy.
There might be some hints in here if that's still needed:
https://github.com/apache/httpcomponents-client/blob/5.0.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientPreemptiveBasicAuthentication.java

> Upgrade Http Client
> -------------------
>
>                 Key: MDOCCK-35
>                 URL: https://issues.apache.org/jira/browse/MDOCCK-35
>             Project: Maven Documentation Checker Plugin
>          Issue Type: Dependency upgrade
>            Reporter: Robert Scholte
>            Priority: Major
>              Labels: up-for-grabs
>
> This plugin is still using the outdated commons-httpclient 3.1
> This should be updated to a more recent version as described at https://hc.apache.org/httpcomponents-client-5.0.x/index.html
> The structure has changed, so expect usage of new classes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)