c#
C#编程报错:Could not establish t...

在使用C#编写软件要用webrequest获取资源时,报“The underlying connection was closed:Could not establish trust relationship for the SSL/TLS secure channel.”的错。网上各种解决办法都有、但是最实用的办法还是如下、简单的代码就可以完美解决!主要还是在于Http与HTTPS的区别!