标签: cookies

Android: HttpClient与Webview共享cookies

httpclient与webview需要进行cookie 共享,因为如果不共享,那么假设你在httpclient进行了登录,然后用webview里打开那些login之后才能看的page,就会叫你再login

DefaultHttpClient httpclient=….;
String toUrl=”https://cap.cityu.edu.hk/studentlan/details.aspx…..”;

List<Cookie> cookies = httpclient[……]

阅读全文»

鄂ICP备13000209号-1

鄂公网安备 42050602000277号