title: How to parse a Zend URL for parameters?
body: <p>I am trying to extract the GET parameters from a ZF REST URL. It's not the current request and I don't want to call the URL or execute the route, I just need the parameters. I'm looking for a utility function like parse_url(), but for the Zend REST format. Is there one, or do I have to reinvent the wheel?</p>
  
  <p>I've tried a few things like creating a new Zend_Controller_Request_Http but the parameters aren't being populated. It is a valid HTTP URL.</p>
  
  <p>Edit: Upon request, a sample Zend URL:</p>
  
  <pre><code>http://localhost/index/index/param1/foo/param2/bar
  </code></pre>
  
  <p>So I am just trying to get param1 and param2 out of this URL.</p>
  
  <p>Edit #2: I tried this but it does not seem to work:</p>
  
  <pre><code>$request = new Zend_Controller_Request_Http('http://localhost/home/test/param1/foo/param2/bar');
  $front = Zend_Controller_Front::getInstance();
  $route = new Zend_Rest_Route($front);
  var_dump($route-&gt;match($request));
  </code></pre>