drools-eclipse/org.guvnor.eclipse.webdav/src/client/org/eclipse/webdav/http/client/Request.java
public void write(OutputStream os) throws IOException {
        if (requestBodyWriter == null) {
            if (inputRead) {
                is.reset();
                inputRead = false;
            }
            super.write(os);
        } else {
            requestBodyWriter.writeRequestBody(os);
        }
    }
public void write(OutputStream os) throws IOException {
        if (requestBodyWriter == null) {
            if (inputRead) {
                is.reset();
                inputRead = false;
            }
            super.write(os);
        } else {
            requestBodyWriter.writeRequestBody(os);
        }
    }
Writes this request's body to the given output stream. This method may
be called more than once during the lifetime of this request.

@param os an output stream
@exception IOException if there is an I/O error