// 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.Text.RegularExpressions; class MainClass { public static void Main(string[] args) { Check("http://hp.dk/", ".gif"); Check("http://hp.dk/", ".jpg"); Check("http://tv2.dk/", ".gif"); Check("http://tv2.dk/", ".jpg"); Check("http://192.168.1.11/", ".gif"); Check("http://192.168.1.11/", ".jpg"); } public static void Check(string url, string imgtyp) { WebClient wc = new WebClient(); StreamReader sr = new StreamReader(wc.OpenRead(url)); string html = sr.ReadToEnd(); if(Regex.IsMatch(html.ToLower(), "