Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid cookie header: "Set-Cookie: #49

Open
lt82654993 opened this issue Aug 6, 2019 · 0 comments
Open

Invalid cookie header: "Set-Cookie: #49

lt82654993 opened this issue Aug 6, 2019 · 0 comments

Comments

@lt82654993
Copy link

问题:
CookieStore cookieStore = httpClient.getCookieStore();
这种形式获取cookie可能会导致cookie信息获取不全,报invalid cookie header httpclient警告提
示;
提示信息如下
o.a.h.c.protocol.ResponseProcessCookies : Invalid cookie header: "Set-Cookie: activityAccountJumpPage=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT; domain=kuaishou.com". Invalid 'expires' attribute: Thu, 01 Jan 1970 00:00:00 GMT

解决方法:
Response response = httpClient.execute(httpPost);
response.getHeaders("Set-Cookie")[0].getValue();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant