HttpClient not storing cookies on galaxy s2

后端 未结 2 1743
慢半拍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

    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.

提交回复
热议问题