复制代码 代码如下:
<system.web><httpRuntime executionTimeout="9999" maxRequestLength="2097151"/></system.web>
复制代码 代码如下:
iserviceprovider provider = (iserviceprovider) httpcontext.current;
httpworkerrequest wr = (httpworkerrequest) provider.getservice(typeof(httpworkerrequest));
byte[] bs = wr.getpreloadedentitybody();
....
if (!wr.isentireentitybodyispreloaded())
{
int n = 1024;
byte[] bs2 = new byte[n];
while (wr.readentitybody(bs2,n) >0)
{
.....
}
}
新闻热点
疑难解答
图片精选