Download current page HTML with out creating a new session

Quartermush

New Member
I have a webpage which is windows forms authenticated ,and i want to download a copy of this page's HTML in to my server, when user request this page. I have tried something like this\[code\]using (WebClient client = new WebClient()) { string htmlCode = client.DownloadString("http://aksphases:200/lynliste.aspx"); }\[/code\]which doesn't gives me correct result because of the URL I had passes to system creates new session.And in that case i need to authenticate this web-request,which I can't do.Only way to authenticate this webpage is that user log in manually(I know ways to authenticate werequests by code,but I can't try that here for some special reasons). Is there any other way for me to download current page's HTML which is running in in browser with out authenticating the URL.
 
Back
Top