I have always used this code to donwload the html source from a web page:
private string GetHtml(string url)
{
HttpWebRequest web = (HttpWebRequest)WebRequest.Create(url);
web.Method = "GET";
WebResponse resp = web.GetResponse();
Stream istrm = resp.GetResponseStream();
StreamReader sr = new StreamReader(istrm);
string html = sr.ReadToEnd();
sr.Close();
resp.Close();
return html;
}
But it returns an empty string when url has this value:
http://actas.rfef.es/actas/RFEF%5FCmpJornada?cod%5Fprimaria=1000144&CodCategoria=100