In diesem C# Snippet von dongdong seht ihr, wie man den Quelltext einer Webseite auslesen kann.
[cs]using System.Net;
using System.IO;
HttpWebRequest requ = (HttpWebRequest)WebRequest.Create("http://google.de");
requ.Method = "GET";
HttpWebResponse response = (HttpWebResponse)requ.GetResponse();
StreamReader sr = new StreamReader(response.GetResponseStream());
try
{
while (!sr.EndOfStream)
{
String line = sr.ReadLine();
}
}
finally
{
sr.Close();
}[/cs]
Termi