开发者

load html text of https (SSL)

开发者 https://www.devze.com 2023-01-09 23:13 出处:网络
Does anyone kno开发者_开发问答w how to load the HTML element of https in asp.net? say.. you have the following url: https://somesite.com/secure/site.aspx. How do I programatically load the html conte

Does anyone kno开发者_开发问答w how to load the HTML element of https in asp.net?

say.. you have the following url: https://somesite.com/secure/site.aspx. How do I programatically load the html content of the this url?


You're looking for the WebClient class:

string source;
using(var client = new WebClient())
    source = client.DownloadString(url);
0

精彩评论

暂无评论...
验证码 换一张
取 消