url.php
public function getEncodedRequest()
    {
        if ($this->raw) {
            $encoded = $this->raw;
        } else {
            $encoded = $this->request->asUrlRequest();
        }
        if ($encoded) {
            return '?' . preg_replace('/^\?/', '', $encoded);
        }

        return '';
    }
public function getEncodedRequest()
    {
        if ($this->raw) {
            $encoded = $this->raw;
        } else {
            $encoded = $this->request->asUrlRequest();
        }
        if ($encoded) {
            return '?' . preg_replace('/^\?/', '', $encoded);
        }

        return '';
    }
Accessor for current request parameters in URL string form.
Will return teh original request
if at all possible even if it doesn't make much sense.

@return string   Form is string "?a=1&b=2", etc.