You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2019/07/31 14:19:00 UTC

[jira] [Resolved] (HTTPCLIENT-2006) HttpClient 5.0-beta5 gets 403 error for URL, works in HttpClient 4/Curl/Wget etc

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

Oleg Kalnichevski resolved HTTPCLIENT-2006.
-------------------------------------------
    Resolution: Invalid

> HttpClient 5.0-beta5 gets 403 error for URL, works in HttpClient 4/Curl/Wget etc
> --------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-2006
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-2006
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient (classic)
>    Affects Versions: 5.0 Beta5
>         Environment: Java 12/MacOS 10.14.6
>            Reporter: Andrew Parks
>            Priority: Major
>
> When testing an upgrade from HttpClient 4.5.9 to HttpClient 5.0-beta5, I tried the following code on a large number of URLs:
> {{System.out.println(Request.Get("https://www.popsugar.com").execute().returnContent());}}
> It worked fine for other sites, but for some reason, the PopSugar web site returns a 403 error. The same web site does not have a problem when HttpClient 4.5.9 is used to do exactly the same thing. There is also no problem when tested with curl, wget, or a regular browser. Changing user agents does not make a difference.
> I have verified that the PopSugar web site supports HTTP/2. Perhaps there is a protocol incompatibility.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org