Cookie cookie = null;
using (HttpWebResponse response = HTTPRequester.CreatePOSTRequest("http://localhost:8080/login", "application/x-www-form-urlencoded", "login=123&password=321", out postData))
{
if (response.StatusCode == HttpStatusCode.OK)
{
cookie = response.Cookies["SID"];
}
}
我想从服务器响应中收到一个cookie。但是在命名空间中,System.Net不是.Net CF的Cookie类型。什么类型可以取代他?