none
webview获取cookies RRS feed

全部回复

  • HttpBaseProtocolFilter httpBaseProtocolFilter = new HttpBaseProtocolFilter();
                    HttpCookieManager httpCookieManager = httpBaseProtocolFilter.CookieManager;
                    HttpCookieCollection httpCookieCollection = httpCookieManager.GetCookies(args.Uri);
                    if (httpCookieCollection.Count > 0)
                    {
                        foreach (var item in httpCookieCollection)
                        {
                            if (item.Name == "xxx")
                            {
                                // your code
                            }
                         
                        }
                        
                    }

    2016年8月30日 12:01