hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiandong Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1576) httpclient incorrectly return Cookie rejected
Date Wed, 05 Nov 2014 10:18:33 GMT
Jiandong Zhang created HTTPCLIENT-1576:

             Summary: httpclient incorrectly return Cookie rejected 
                 Key: HTTPCLIENT-1576
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1576
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient, HttpCookie
    Affects Versions: 4.3.3
         Environment: OS X 10.10
            Reporter: Jiandong Zhang

I use httpclient as a web crawler. The request url is http://www1.bloomingdales.com/shop/product/polder-digital-kitchen-timer?ID=478960
and the destination ip is So I create a request as follow:
URL requestUrl = new URL("");

HttpUriRequest request = new HttpGet(requestUrl.toURI());
request.addHeader("Host", "www1.bloomingdales.com");

It return that "Cookie rejected Illegal domain attribute "bloomingdales.com". Domain of origin:

I debug it, and find out  RequestAddCookies use as host and check cookie valid
with the response cookie info which domain is ".bloomingdales.com", So it failed. 

Here my host is www1.bloomingdales.com, RequestAddCookies should use www1.bloomingdales.com

This message was sent by Atlassian JIRA

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

View raw message