开发者

load html text of https (SSL)

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜