紧急求助!!!!望高手帮忙
string strUrl = "https://clmdweb:8443/master/login/LogoutAll.do ";
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(strUrl);
request.Method = "POST ";
request.ContentType = "application/x-www-form-urlencoded ";
Stream reqStream = request.GetRequestStream();
程序到最后一句就发生错误,WebException里面catch住后Status是ProtocolError,
InvalidOperationException里面catch住之后能看到错误代码是403
需要说明的是WEB服务器是https的.
请明白的人指点.感激不尽!!!
------解决方案--------------------友情UP
------解决方案--------------------up
attention
------解决方案--------------------HttpWebRequest 连接协议需要制定.不是默认的协议
------解决方案--------------------Mark