After upgrading to Apache HttpClient 4.4 it does not send cookies with requests
I have debugged the example code. The problem is at BasicDomainHandler.match(Cookie, CookieOrigin) line: 129
as it expects org.apache.http.cookie.ClientCookie.DOMAIN_ATTR to be set in order to match full host name from URL to cookie domain. So you need to add the following line to your code, after you set the domain:
cookie.setAttribute(ClientCookie.DOMAIN_ATTR, "true");
The change was added with revision 1646864 on 12/19/14, 10:59 PM:
RFC 6265 compliant cookie spec