// Collection of code snippets by Arne Vajhøj // (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) using System; using System.IO; using System.Net; using System.Web; class MainClass { public static void Main(string[] args) { HttpWebRequest wr = (HttpWebRequest)WebRequest.Create("http://www.betcris.com/League.aspx?league=12148"); wr.UserAgent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"; StreamReader sr = new StreamReader(wr.GetResponse().GetResponseStream()); string line; while((line = sr.ReadLine()) != null) { Console.WriteLine(line); } } }