在"Https"上获取html源网站 [英] get html source on "Https" website
本文介绍了在"Https"上获取html源网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我的应用程序是Windows Forms应用程序中有一个Web浏览器,并且在Web浏览器控件中,我加载了不同的网页,我需要每个网页的HTML源,但是有一个网页是"HTTPS",我可以即使我将此页面加载到IE 8中也无法获取此页面的HTML,但仍然无法获得源代码.
任何机构都可以帮助我获取https页面的html.
问候,
tanweer,< b></b>
Hello Everybody,
I have a web browser in my application which is a windows forms application and in the web browser control I load different web page and i need the HTML source of every web page, but there is a web page that is "HTTPS" and I can not get the HTML for this page even I load this page into IE 8 and still the source is unavailable.
Can any body help me to get the html for the https page please.
regards,
tanweer,<b></b>
推荐答案
为什么不从Web控件获取源代码,为什么不使用HttpWebRequest之类的东西直接下载它.这应该适用于HTTP和HTTPS请求.
HttpWebRequest MSDN页面,一个很好的起点:
http://msdn.microsoft.com/en-us/library/system.net. httpwebrequest.aspx [ ^ ]
Instead of getting the source from the web control, why not use something like a HttpWebRequest to download it directly. This should work with both HTTP and HTTPS requests.
The HttpWebRequest MSDN page, a good place to start:
http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.aspx[^]
具有此
使用SSL进行HTTPS GET获取网页的HTML源 [
Have this
HTTPS GET to get HTML Source of Web Page using SSL[^]
这篇关于在"Https"上获取html源网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文