protected function decodeStreamCommon( $request, $stream, $headers=false, $cookies=array(), $statuscode="200" )
    {
        $this->Cookies = $cookies;
        $this->Headers = $headers;
        $this->StatusCode = $statuscode;
        $this->ContentType = '';
        $this->Charset = '';
        if ( isset( $headers['content-type'] ) )
        {
            list ( $this->ContentType, $this->Charset ) = $this->parseContentTypeHeader( $headers['content-type'] );
        }

        $this->IsFault = false;
        $this->FaultString = false;
        $this->FaultCode = false;
    }