How to get POST url with parameters from HttpServletReqest in ServletFilter? (For proxy application)
Due to browser limitations, I need to use a proxy to work with openlayers map.
The OpenLayers.ProxyHost javascript object handles the creation of the url, for example:
http: // webhost: 8080 / app / proxy /? url = http: // WFS_server / options / ...
Some of the requests will be GET and others will be POST.
I wrote a servlet filter that will receive the request and then use the public HttpClient to send it to the host specified by the 'url' parameter.
Everything works for GET, but I am having a hard time getting the url parameter value for POST.
According to the javadoc I see in eclipse it should be request.getRequestURI (), but this returns the post value minus the url parameter value (i.e. http: // webhost: 8080 / app / proxy / )
In fact, the only way to get the data is to call the request.toString () method and parse the URL.
I am deploying Jetty Server 6.1.11, so I am wondering if this could be a Jetty bug or if I am missing something, where can I get this detail?