Requesting html over https with c# Webclient

后端 未结 4 770
忘掉有多难
忘掉有多难 2020-11-29 07:23

I am attempting various html resources via c# WebClient class from a site I have no control over. When I attempt to access urls such as \"https://archive.org/details/OTRR_

4条回答
  •  南方客
    南方客 (楼主)
    2020-11-29 08:06

    I tried this example and received the error "The request was aborted: Could not create SSL/TLS secure channel"

    To fix this problem it's possible to change the SecurityProtocol in my case Tls12 and it's working good.

提交回复
热议问题