public function getUrlStr()
    {
        $str = (!empty($this->resource)) ? $this->resource : '';

        /* x-www-form-encoded posts encodes query params in the body */
        if (!$this->isWWWFormURLEncodedPost()) {
            $str .= (!empty($this->params)) ? ('?' . $this->buildQuery()) : '';
        }
        return $str;
    }