.Net Compact Framework中的Cookie(System.Net)类型模拟(VS2008)

时间:2015-07-06 09:58:18

标签: c# .net

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类型。什么类型可以取代他?

0 个答案:

没有答案