Lunarpages Web Hosting Forum

Author Topic: Mungnig of Request URLs?  (Read 1068 times)

Offline DeathBeforeDecaf

  • Space Explorer
  • ***
  • Posts: 7
Mungnig of Request URLs?
« on: February 14, 2005, 01:18:29 PM »
Hi All,

I have two domain names that point to the same site: and  Pretty straight forward.

However, it seems that no matter which domain the browser is requesting, my server-side code sees "" in the request URL.  The best place to see this in action is at    Note that even though you see "" in your browser, the JSP on the other end thinks you requested the page from

The code that prints out the "Request URL" on that page is as basic as you can get.  It simply calls request.getRequestURL(), and prints that value.

This is making it tricky to write cookie-related code (for instance, to get my site to "remember" users that have already logged in).

Does anyone know how I can get an accurate report from the App server about what the request URL actually is?
Thrive defensively.