当前位置: 代码迷 >> Java Web开发 >> 为什么小弟我的jsp中request.getcontentlength等于 -1
  详细解决方案

为什么小弟我的jsp中request.getcontentlength等于 -1

热度:88   发布时间:2016-04-17 15:39:31.0
为什么我的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发出的请求?
  相关解决方案