Is there a unified way to do this? Browsers usually don't respond as expected to user32's GetWindowText and SendMessage, which you can use to scrape the text out of most win32 applications.
I'd like to get the equivalent of "View Source" on the open web page.
Currently, I'm using the API for screen readers to scrape from IE, but that doesn't work for FF or Chrome or etc.
ANY suggestions (not requiring me to proxy or try to connect to a web server) to do this for different browsers is GREATLY appreciated. Again, I'm using the screen reader API for IE (which doesn't always work correctly!)...
This question now has a bounty.
To collect the bounty, I want to see code, in c#, to scrape an IE window and a FireFox window.
Alternatively, code for a HTTP proxy that does the same thing (i.e., record the current request's content) that works for HTTPS as well.
Let me be clear... My requirements are to scrape a window. Oh, and by the way, that window is a browser. I give you the option to show me a proxy to claim the bounty. I already understand there are proxies and what they do, telling me about their existence isn't helping me.
I also can't just connect to the url in code and scrape the response object. Why? Requirements won't let me, among other issues.
I require a solution in .net, as the tags say.