HTTPCLIENT4 Warning: Problem solving for Invalid cookie header

Source: Internet
Author: User
The following warning appears when you recently used HTTPCLIENT4
Org.apache.http.client.protocol.ResponseProcessCookies processcookies
Warning: Invalid Cookie header: "set-cookie:ld=apo1byllll23mj1xlllll9$cay9lllllt$pxwyllll9lllllvklll5@@@@@@@@@@; path=/; Expires=thu, Oct 2009 01:48:49 GMT; Domain=.shanhe114.com ". Unable to parse expires Attribute:thu, Oct 2009 01:48:49 GMT

Looking for a long time to finally find a solution, the actual is very simple to add such a code
Java code httpclient httpclient = new Defaulthttpclient (); Httpclientparams.setcookiepolicy (Httpclient.getparams (), cookiepolicy.browser_compatibility);

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.