Asp Request.Servervariables problem

Discussion in 'C#' started by ashrafweb, Dec 16, 2007.

  1. #1
    Hello all

    I am using the Request.ServerVariables("HTTP_REFERER") to decide who can
    and can't access certain areas of a website. It seems to be working well,
    except for with IE5 on a Mac. Does anyone know of a documented difference
    in how IE5 on a Mac passes the Referer? Actually, does this information
    even depend on the browser? Is there some other reason why
    Request.ServerVariables("HTTP_REFERER") would return different information
    from a Mac and IE5 than any other browser/OS combination. Does anyone have
    a link to information about this?

    I really hope you can help!
     
    ashrafweb, Dec 16, 2007 IP
  2. urstop

    urstop Peon

    Messages:
    224
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Request.ServerVariables("HTTP_REFERER") must retunr you the correct referring urls. What URL does it return on a MAC and what does it do on other OS?
     
    urstop, Dec 17, 2007 IP
  3. ashrafweb

    ashrafweb Member

    Messages:
    67
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #3
    i said that "It seems to be working well"
    on other OS's Returns the correct refered URL
    on mac: does not return correct URL?
     
    ashrafweb, Dec 18, 2007 IP
  4. heyman

    heyman Peon

    Messages:
    70
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    the refer http header is not guaranteed to be there in the request. it depends how the client is written and chooses to send it.

    so on the MAC your client may not be sending the right refer
     
    heyman, Dec 21, 2007 IP