title: How to get POST URL with parameters from HttpServletReqest in ServletFilter? (For proxy app)
body: <p>Due to browser restrictions I need to use a proxy to make an openlayers map work.</p>
  
  <p>The OpenLayers.ProxyHost javascript object handles the generation of a URL like:</p>
  
  <p><a href="http://webhost:8080/app/proxy/?url=http://WFS_server/options/" rel="nofollow noreferrer">http://webhost:8080/app/proxy/?url=http://WFS_server/options/</a>...</p>
  
  <p>Some of the requests will be GET's and others will be POST's.</p>
  
  <p>I've written a Servlet Filter that will recieve the request and then use the commons HttpClient to dispatch it to the host specified by the 'url' parameter.</p>
  
  <p>Everything works for GET but I am having difficulties getting the 'url' parameter value for POST's.</p>
  
  <p>According to the javadoc I see in eclipse it should be request.getRequestURI() but this is only returning the value of the post minus the url parameter value (i.e. <a href="http://webhost:8080/app/proxy/" rel="nofollow noreferrer">http://webhost:8080/app/proxy/</a>)</p>
  
  <p>In fact the only way I can get the data is to call the request.toString() method and parse out the url.</p>
  
  <p>I'm deploying into a Jetty 6.1.11 server so I'm wondering if this might be a Jetty bug or if I'm missing something on where to get this detail?</p>