I'm trying to buffen up my C# knowledge and experience so I am converting a Python script I wrote to C#. The script converts and stores the user's browser cookies into a text file. It then uses them to log into a website that uses WLID login stores the new
live.com cookies and the websites own user cookies; then scrapping the source of the HTML page.
I've done some research and c#.net seems to have a lot of different ways to achieve a cookie login. What's the best way to achieve this in the simplest form?
I'm getting existing cookies from a web browsers cookie file and using those cookies to login to a site and then storing the new cookies.
Here's my basic request:
WebClient client = new
, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)"
Stream data = client.OpenRead("http://www.google.com"
StreamReader reader = new
s = reader.ReadToEnd();
View Complete Post