request.getHeader("Host") returns wrong host name

Discussion in 'Java' started by Orpheus66, Jul 30, 2003.

  1. Orpheus66

    Orpheus66 Guest

    We've deployed a website on a server exposed to the internet through
    our firewall. IIS handles the pass-off to Resin 2.0.4, and has worked
    flawlessly on other applications configured the same way.

    The problem is for some reason when we come into the site externally
    from a URL like this: http://externaldomain.com/app

    Every place in the code that does a request.getHeader("Host") returns
    "internalmachinename" instead of "externaldomain.com"

    Has anyone seen this before? Because a servlet we use depends on the
    fully qualified URL, we need to be able to grab the correct host when
    constructing some links.

    Thanks in advance.
    Orpheus66, Jul 30, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Roger Twomey
    Replies:
    2
    Views:
    2,962
    bruce barker
    Jun 11, 2004
  2. Sandy
    Replies:
    1
    Views:
    545
    Craig Deelsnyder
    Jun 11, 2004
  3. Mark Fitz

    request.getHeader - referer

    Mark Fitz, Nov 22, 2004, in forum: Java
    Replies:
    5
    Views:
    39,365
    Mark Fitz
    Nov 23, 2004
  4. polilop

    getHeader("Authorization")

    polilop, May 7, 2008, in forum: Java
    Replies:
    0
    Views:
    727
    polilop
    May 7, 2008
  5. John Davis
    Replies:
    2
    Views:
    374
    Dave Anderson
    Aug 18, 2003
Loading...

Share This Page