C# app, need help!
I am making an internet bot using C#. I have the url of a website. How can I get the source of the website? Any pointers are appreciated!
Have a look at codeguru.com, codeproject.com, or csharpcorner.com
There is an example on one of those sites. Thinkit's codeproject but can not remember.
There is an example on one of those sites. Thinkit's codeproject but can not remember.
I looked at all three. CSharpCorner seems to have disappeared. At CodeProject, I found two examples, but they both use ASP.NET. Does anyone know of a good way using just the .NET Framework? Thanx!
Take a look the documentation for System.Net.WebClient very easy to use.
System.Net.WebClient client = new System.Net.WebClient();string html = System.Text.Encoding.ASCII.GetString(client.DownloadData("http://www.gamedev.net"));
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement