JOY's Blog
星期二, 9月 18, 2018
[C#] Request.GetResponse() 基礎連接已關閉: 接收時發生未預期的錯誤
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls;
加在
HttpWebResponse httpResponse = (HttpWebResponse)httpRequest.GetResponse();
前面即可
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言