litesuits / android-lite-http

LiteHttp is a simple, intelligent and flexible HTTP framework for Android. With LiteHttp you can make HTTP request with only one line of code! It could convert a java model to the parameter and rander the response JSON as a java model intelligently.
http://litesuits.com?form=ghttp
Apache License 2.0
830 stars 347 forks source link

Cookie refected #16

Closed shuleihen closed 8 years ago

shuleihen commented 8 years ago

Cookie rejected: "BasicClientCookie[version=0,name=_da_ntes_uid,domain=xxxx,path=/,expiry=Thu Jan 05 09:44:27 GMT+08:00 2017]".

Server Reject Client Exception (服务器拒绝或无法提供服务), code: 400, Bad Request

请问cookie如何设置?

litesuits commented 8 years ago

cookie在header中添加即可,request.addHeader或者在litehttp.getConfig()里设置公共header

shuleihen commented 8 years ago

这里的cookie是服务器送过来的,不是可以自动写到cookie吗,现在好像是没有权限,如何设置cookie策略