我正在尝试使用HTTP POST请求进行登录,服务器响应正常,但在日志中有多个条目如下:
W/ResponseProcessCookies﹕
Invalid cookie header: "Set-Cookie: _boss_session=2e3aef5b7a0ffc7946127f791223aea6e09dfbcc;
Version=1;
Expires=Thu, 21-May-2015 14:42:47 GMT;
Max-Age=525600;
Path=/". Unable to parse expires attribute: Thu
我的客户:
public static void get(String url, RequestParams params, AsyncHttpResponseHandler responseHandler){
mClient.get(getAbsoluteURL(url), params, responseHandler);
}
public static void post(String url, RequestParams params, AsyncHttpResponseHandler responseHandler){
mClient.post(getAbsoluteURL(url), params, responseHandler);
}
private static String getAbsoluteURL(String relativeUrl){
return URL + relativeUrl;
}
并使用客户端:
Client.post("tools/ident/login", new RequestParams(loginParams), responseHandler);
我该如何解决这个问题?