HttpClient not storing cookies on galaxy s2

后端 未结 2 1722
慢半拍i
慢半拍i 2021-01-16 15:04

I\'m trying to fetch data from a server with this code

    DefaultHttpClient httpClient = new DefaultHttpClient();
    httpClient.getParams().setParameter(Co         


        
相关标签:
2条回答
  • 2021-01-16 15:57

    I had a similar problem. The problem was the fact that my phone was causing incorrect date so that all cookies were empty !!!

    0 讨论(0)
  • 2021-01-16 15:57

    After many tries i found that the BasicCookieStore was not adding any cookie, because all cookies were expired for an unknown reason (and only on S2). I had to create my own implementation of CookieStore which ignore the expiration date check. This is a temporary fix, i'm still digging to find a more secure and clean way to solve this.

    0 讨论(0)
提交回复
热议问题