Self-implemented cookie verification, remote value example http://www.cnblogs.com/deerchao/archive/2007/08/09/849361.html this address download HttpClient class the following code with HttpClient can be used to achieve cross-origin (cookie read/write) // verify HttpClient httpClient = new HttpClient (url, null, true); httpClient. postingData. add (key, value); // Login User Name httpClient. postingData. add (key, value); // password string str = httpClient. getString (); ---- write the cookie CookieCollection cookies serialized from the file = httpClient. context. cookies; // save a global cookie file FileStream fileStream = new FileStream ("xxx. dat ", FileMode. create); BinaryFormatter B = new BinaryFormatter (); B. serialize (fileStream, cookies); fileStream. close (); -- Read File deserialization cookies are assigned to cookiesFileStream fileStream of httpClient = new FileStream ("xxx. dat ", FileMode. open, FileAccess. read, FileShare. read); BinaryFormatter B = new BinaryFormatter (); CookieCollection cookies = B. deserialize (fileStream) as CookieCollection; HttpClient httpClient = new HttpClient ("url"); // The value of urlhttpClient. context. cookies = cookies; string str = httpClient. getString ();