1

我正在尝试使用 Net.WebRequest 和 Net.WebResponse 连接到站点并获取 SSL 证书的到期日期。我查看了请求和响应的所有属性,但找不到此信息。任何人都可以帮忙吗?

    ' Initialize the WebRequest. 
    Dim myRequest As Net.WebRequest = Net.WebRequest.Create("https://testsite.com")

    ' Return the response.  
    Dim myResponse As Net.WebResponse = myRequest.GetResponse()

有没有办法为此使用 WebRequest 的服务点?

4

0 回答 0