Hi, is there anyway to get the source of a webpage if that page requires you to be logged (giving you the login page if you're not)?? The reason being I want to parse a forum that requires a login.
I've tried gettting the page source the webclient download data way, but to no avail: WebClient web_client = new WebClient(); Byte[] page_in_bytes = web_client.DownloadData(url); string page_source = System.Text.Encoding.ASCII.GetString(page_in_bytes);
as all it EVER gives me is the login page. I had foolishly hoped it would magically use the cookie (on my comp) and login nicely, but unsurprisingly and very disappointingly, it didn't.
After that, I had desperately tried to use the AxWebBrowser's to get the source. Hoping that since I could login as a normal browser and display the logged in page, that I'd be able to call some sort of view source function on the page. BUT, as I soon found out, AxWebBrowser has NO VIEW SOURCE COMMAND OF ANY SORT.
So I'm stuck on ideas.
To reiterate, I'm looking for any means to get the source of page (of a forum) that requires being logged in. Obviously, to a forum which I have a valid login.