I'm trying to access information on a webpage. First time I've done this. The problem with this is that it is too slow. Doing this only on one page, that loads very fast on a browser, but takes forever here. Only thing I need here is the HTML behind the page, so I got to ask, is my code in some way downloading the images? Any help would be great to speed up this process.
string url;
HttpWebRequest pedido = (HttpWebRequest)WebRequest.Create(url);
HttpWebResponse resposta = (HttpWebResponse)pedido.GetResponse();
//On the line above it takes forever to load.
StreamReader SR = new StreamReader(resposta.GetResponseStream());
string html;
string tituloTemp = "";
do
{
html = SR.ReadLine();
if (html.Contains("<title>"))
tituloTemp = html;
} while (!(html.Contains("<title>")));
SR.Close();