using System.Net; Uri uri = new Uri(uriString); HttpWebRequest httpRequest = (HttpWebRequest)WebRequest.Create(uri); HttpWebResponse response = httpRequest.GetResponse(); HttpStatusCode code = response.StatusCode; System.IO.Stream rs = response.GetResponseStream();