Andrew Parks created HTTPCLIENT-2006:
----------------------------------------

             Summary: 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


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-unsubscr...@hc.apache.org
For additional commands, e-mail: dev-h...@hc.apache.org

Reply via email to