Click here to Skip to main content
15,885,920 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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>
Posted
Comments
Manfred Rudolf Bihy 23-Dec-10 8:29am    
@Tanweer: Can you disclose the URL of this ominous website?

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[^]
 
Share this answer
 
Comments
Manfred Rudolf Bihy 23-Dec-10 10:03am    
That should do it indeed! 5+
There still might be something sneaky going on like loading page tha main page content from AJAX, but still some content would have to be there.
 
Share this answer
 
Comments
Tony Richards 24-Dec-10 6:46am    
Respectfully, there isn't a need to use a paid-for component when there are perfectly good built in classes that will achieve the same task.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900