[c#]
webclient myclient = new webclient();
stream response = myclient.openread("http://www.contoso.com/index.htm");
// the stream data is used here.
response.close();
[c#]
webrequest req = webrequest.create("http://www.contoso.com/");
webresponse resp = req.getresponse();
[c#]
streamreader sr =
new streamreader(resp.getresponsestream(), encoding.ascii);
新闻热点
疑难解答
图片精选