[C#] 纯文本查看 复制代码 HttpHelper http = new HttpHelper();
HttpItem item = new HttpItem()
{
URL = "https://ninghao.net/user/login",
Method = "post",
Postdata = "name=XXXXXX&pass=XXXXXX",
ResultCookieType = ResultCookieType.CookieCollection
};
HttpResult result = http.GetHtml(item);
item = new HttpItem()
{
URL = "https://ninghao.net/video/6232",
CookieCollection = result.CookieCollection,
ResultCookieType = ResultCookieType.CookieCollection
};
result = http.GetHtml(item);
string nUrl = new Regex(@"(?<=source src=)(.*)(?= type)").Match(result.Html).Value.Trim().Replace("\"", "");
textBox1.Text = nUrl; |