我正在尝试使用创建http请求
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(DownloadURL);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
我使用了所有字符串格式的cookie:cookie1=value1;cookie2=值2;当请求时,我如何以字符串格式附加这些cookie
试试这个
request.Headers["Cookie"] = "cookie1=value1; cookie2=value2";