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

解决方案 »

  1.   

    Returns the length, in bytes, of the request body and made available by the input stream, or -1 if the length is not known.
      

  2.   

    那为什么
    http://xx.jsp?i=1
    这个请求流长度为-1?
    length is not known?
      

  3.   

    好象只有POST提交才有这个长度吧.你是不是用的GET发出的请求?
      

  4.   

    这样啊,原来如此,post才有长度,多谢adverse!