HttpWebRequest req; HttpWebResponse resp; StreamReader sr; string content; req = (HttpWebRequest)WebRequest.Create("testkrok.org.ua/"); resp = (HttpWebResponse)req.GetResponse(); sr = new StreamReader(resp.GetResponseStream(), Encoding.GetEncoding("windows-1251")); content = sr.ReadToEnd(); sr.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)