Re: Servlet Request URL

2011-08-09 Thread André Warnier
Mohit Anchlia wrote: I think I resolved it. It looks like if I keep the "Host" header set to incoming request it works just fine. I am assuming Proxies do the same thing. And it also looks like HttpServletRequest.getRequestURL uses http header Host to get the host name. Sound a bit like the Har

Re: Servlet Request URL

2011-08-09 Thread Mohit Anchlia
I think I resolved it. It looks like if I keep the "Host" header set to incoming request it works just fine. I am assuming Proxies do the same thing. And it also looks like HttpServletRequest.getRequestURL uses http header Host to get the host name. On Mon, Aug 8, 2011 at 10:50 PM, Mohit Anchlia

Re: Servlet Request URL

2011-08-08 Thread André Warnier
Mohit Anchlia wrote: I need to intercept a request in the servlet and send the request after some processing as a proxy. Currently when I do that it breaks OAuth since customer uses REQUEST URL to sign the request and since host part of the URL is changing it breaks that validation. Is there a wa

Servlet Request URL

2011-08-08 Thread Mohit Anchlia
I need to intercept a request in the servlet and send the request after some processing as a proxy. Currently when I do that it breaks OAuth since customer uses REQUEST URL to sign the request and since host part of the URL is changing it breaks that validation. Is there a way I can keep the same h