标签:ResponseStatusCode

HttpWebRequest.GetRequestStream()引发400异常后,怎么样获取确切的错误信息

用HttpWebRequest 发post请求,失败后,引发了如下异常: ResponseStatusCode “request.ResponseStatusCode”引发了“System.NullReferenceException”类型的异常 System.Net.HttpStatusCode {System.NullReferenceException……