A
AMercer
The url
http://moneycentral.msn.com/companyreport?Symbol=MMM
contains some information about a stock (3M Co in this case).
My.Computer.Network.DownloadFile() yields some html text that says the
document has moved (as found in the downloaded file).
The Net.WebRequest+Net.WebResponse recipe yields html text that contains the
general layout of the web page, but there are some omissions (as found by
reading the response stream).
Forms.WebBrowser.Navigate, after waiting for the appropriate events to fire,
yields the correct html text (as found in WebBrowser1.DocumentText).
What is going on is that some dynamic content is being handled by
WebBrowser, but the more primitive web page reading technologies just get the
original web page. WebBrowser presumably runs scripts and so forth to get
the job done.
What I want is a lightweight version of WebBrowser. I need the final html
text that results from WebBrowser (or IE) doing its thing, but I don't need
any presentation. I want to ask for the html text for a url, and I want to
receive the same text that IE delivers to you when you right click and then
do "view source".
Does anybody know how to do this? FYI, some of the web sites I am
interested in are old and thus are not xml compliant.
http://moneycentral.msn.com/companyreport?Symbol=MMM
contains some information about a stock (3M Co in this case).
My.Computer.Network.DownloadFile() yields some html text that says the
document has moved (as found in the downloaded file).
The Net.WebRequest+Net.WebResponse recipe yields html text that contains the
general layout of the web page, but there are some omissions (as found by
reading the response stream).
Forms.WebBrowser.Navigate, after waiting for the appropriate events to fire,
yields the correct html text (as found in WebBrowser1.DocumentText).
What is going on is that some dynamic content is being handled by
WebBrowser, but the more primitive web page reading technologies just get the
original web page. WebBrowser presumably runs scripts and so forth to get
the job done.
What I want is a lightweight version of WebBrowser. I need the final html
text that results from WebBrowser (or IE) doing its thing, but I don't need
any presentation. I want to ask for the html text for a url, and I want to
receive the same text that IE delivers to you when you right click and then
do "view source".
Does anybody know how to do this? FYI, some of the web sites I am
interested in are old and thus are not xml compliant.