Request.Url.Host + SSL

Discussion in 'ASP .Net' started by Object01, Sep 28, 2007.

  1. Object01

    Object01 Guest

    Are there any known issues regarding the use of Request.Url.Host on an
    SSL-enabled site? Requests for my application are of the form
    http://abc.com/myPage.aspx, but Request.Url.Host returns "def.geh.com"
    rather than "abc.com".

    The "def.geh.com" part seems to be the machine's name followed by its
    DNS suffix. But I expected Request.Url.Host to return whatever was
    passed in the Host Header of the HTTP GET request.

    The environment is Windows Server 2003 running IIS 6.0, ASP.NET 2.0.

    Am I misunderstanding this property or is this behavior unusual?

    --
    Jeff S.
     
    Object01, Sep 28, 2007
    #1
    1. Advertising

  2. Object01

    bruce barker Guest

    probably you are running with a ssl accelerater (say bigip) that sits
    infront of the web servers. it probably translates the host name.

    -- bruce (sqlwork.com)

    Object01 wrote:
    > Are there any known issues regarding the use of Request.Url.Host on an
    > SSL-enabled site? Requests for my application are of the form
    > http://abc.com/myPage.aspx, but Request.Url.Host returns "def.geh.com"
    > rather than "abc.com".
    >
    > The "def.geh.com" part seems to be the machine's name followed by its
    > DNS suffix. But I expected Request.Url.Host to return whatever was
    > passed in the Host Header of the HTTP GET request.
    >
    > The environment is Windows Server 2003 running IIS 6.0, ASP.NET 2.0.
    >
    > Am I misunderstanding this property or is this behavior unusual?
    >
    > --
    > Jeff S.
    >
     
    bruce barker, Sep 28, 2007
    #2
    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. Brian Birtle
    Replies:
    2
    Views:
    2,102
    John Saunders
    Oct 16, 2003
  2. Orpheus66
    Replies:
    0
    Views:
    4,478
    Orpheus66
    Jul 30, 2003
  3. usenet
    Replies:
    0
    Views:
    923
    usenet
    Aug 27, 2004
  4. Dundonald

    POST request to SSL/HTTPS URL

    Dundonald, Oct 6, 2007, in forum: Java
    Replies:
    20
    Views:
    1,864
    Roedy Green
    Oct 10, 2007
  5. Jerry Qu
    Replies:
    1
    Views:
    507
    lee atkinson
    Feb 20, 2009
Loading...

Share This Page