I\'m trying to implement a limited web crawler in C# (for a few hundred sites only) using HttpWebResponse.GetResponse() and Streamreader.ReadToEnd() , also tried using Strea
HttpWebRequest may be taking a while to detect your proxy settings. Try adding this to your application config:
You might also see a slight performance gain from buffering your reads to reduce the number of calls made to the underlying operating system socket:
using (BufferedStream buffer = new BufferedStream(stream))
{
using (StreamReader reader = new StreamReader(buffer))
{
pageContent = reader.ReadToEnd();
}
}