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);
精彩评论