using system; using system.net; using system.text; using system.io; class test { [stathread] public static void main(string[] args) { uri uri = new uri("http://www.apache.org"); webrequest wr = webrequest.create(uri); stream s = wr.getresponse().getresponsestream(); streamreader sr = new streamreader(s, encoding.default); console.writeline(sr.readtoend()); sr.close(); s.close(); console.readline(); } }