Hi, Method AhcClientHandler.handleCookie() does the following: ``` private void handleCookie(final RequestBuilder requestBuilder) { for (final Cookie c : cookies) { requestBuilder.addCookie(c); } } ``` This ends up calling RequestBuilderBase.addCookie(): ``` public T addCookie(Cookie cookie) { lazyInitCookies(); request.cookies.add(cookie); return derived.cast(this); } ``` Won't this cause all cookies to be attached to the request, regardless of domain/path/expiration, etc.? If I run this code: ``` client.resource("http://www.amazon.com").get(ClientResponse.class); client.resource("http://10.220.178.235").get(ClientResponse.class); ``` looking at the wireshark capture, I see the Amazon cookies being sent to 10.220.178.235. Thoughts? Thank you in advance.
Hi,
Method AhcClientHandler.handleCookie() does the following:
This ends up calling RequestBuilderBase.addCookie():
Won't this cause all cookies to be attached to the request, regardless of domain/path/expiration, etc.?
If I run this code:
looking at the wireshark capture, I see the Amazon cookies being sent to 10.220.178.235.
Thoughts?
Thank you in advance.