日期:2014-05-18  浏览次数:20656 次

为什么我的jsp中request.getcontentlength等于 -1
我接受的是一个soap包,为什么会说request.getcontentlength=-1
如果?i=1,request.getcontentlength还是-1,请大虾解释下request.getcontentlength是指什么长度

------解决方案--------------------
Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known.
------解决方案--------------------
取HTTP请求流长度
------解决方案--------------------
好象只有POST提交才有这个长度吧.你是不是用的GET发出的请求?