[c#]
httpwebrequest httpwreq =
(httpwebrequest)webrequest.create("http://www.contoso.com");
// turn off connection keep-alives.
httpwreq.keepalive = false;
httpwebresponse httpwresp = (httpwebresponse)httpwreq.getresponse();
// get the http protocol version number returned by the server.
string ver = httpwresp.protocolversion.tostring();
httpwresp.close();
新闻热点
疑难解答
图片精选