基础连接已经关闭:接收时发生错误
这个问题咋解决啊。求大神指教啊,贴上代码
System.Net.ServicePointManager.Expect100Continue = false;
System.Net.ServicePointManager.SetTcpKeepAlive(false, 1, 1);
string serviceAddress = url;
request = (HttpWebRequest)WebRequest.Create(serviceAddress);
request.Method = "Get";
request.ServicePoint.Expect100Continue = false;
request.Timeout = 1000 * 3;
//request.ContentType = "application/x-www-form-urlencoded";
request.ContentType = "text/html;charset=UTF-8";
request.KeepAlive = false;
request.ProtocolVersion = HttpVersion.Version11;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3;
response = (HttpWebResponse)request.GetResponse();
webStream = response.GetResponseStream();
reader = new StreamReader(webStream, Encoding.UTF8);