最近抓取網頁會出現錯誤
Could not create SSL/TLS secure channel
不過前幾天都還正常,可能是對方升級了網路SSL協定,只要在程式第一行補上這句即可
System.Net.ServicePointManager.SecurityProtocol = DirectCast(3072, System.Net.SecurityProtocolType) Or DirectCast(768, System.Net.SecurityProtocolType) Or DirectCast(192, System.Net.SecurityProtocolType) Or DirectCast(48, System.Net.SecurityProtocolType)
全站熱搜