为什么我的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发出的请求?