DO NOT REPLY [Bug 39220] - Missing body in a PROPFIND request

[email protected]
Newsgroups gmane.comp.jakarta.slide.devel
Message-ID <[email protected]>
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39220>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39220





------- Additional Comments From [email protected]  2006-06-15 15:46 -------
You also need to override the inherited method #addRequestHeaders otherwise
there is no Content-Length nor Transfer-Encoding header, and some server does 
not like that.

    /**
     * Overrides the inherited method to add a header "Transfer-Encoding: 
     * chunked" if the content-length has not been already set, as expected by 
     * the method writeRequestBody.
     *  
     * @see #writeRequestBody
     */
    protected void addRequestHeaders(HttpState state, HttpConnection conn)
    throws IOException, HttpException {
      super.addRequestHeaders(state, conn);
      if (isHttp11() && getRequestHeader("Content-Length")==null) {
        int len = getRequestContentLength();
        if (len>=0){
          setRequestHeader("Content-Length", String.valueOf(len));
        }
        else setRequestHeader("Transfer-Encoding", "chunked");
      }
    }


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.