Request.ServerVariables["HTTP_REFERER"].ToString(); issue

Discussion in 'Javascript' started by srinivas, Nov 8, 2005.

  1. srinivas

    srinivas Guest

    Hi,

    Request.ServerVariables["HTTP_REFERER"].ToString(); is not
    working for all browsers.In netscape it isreturning the current url
    rather than current url.Is there any alternative method to get the
    previous url in dotnet.

    Thanks,
     
    srinivas, Nov 8, 2005
    #1
    1. Advertising

  2. srinivas wrote:

    > Request.ServerVariables["HTTP_REFERER"].ToString(); is not
    > working for all browsers.


    Of course it does not. User agents are not required to send
    that HTTP header.

    > In netscape


    Which of the numerous Netscape versions are you referring to?

    > it isreturning the current url rather than current url.


    Pardon?

    > Is there any alternative method to get the previous url in dotnet.


    Unless you transfer it explicitly to the server: no.
    And it is not at all a .NET issue.


    PointedEars
     
    Thomas 'PointedEars' Lahn, Nov 8, 2005
    #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. Elliot M. Rodriguez
    Replies:
    1
    Views:
    649
    bruce barker
    Feb 12, 2004
  2. =?Utf-8?B?cHBhdGVs?=

    Request.ServerVariables ("HTTP_REFERER") using https

    =?Utf-8?B?cHBhdGVs?=, Mar 2, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    3,554
    Eric Lawrence [MSFT]
    Mar 3, 2004
  3. Jake
    Replies:
    4
    Views:
    12,370
    Craig Deelsnyder
    Apr 20, 2005
  4. Wayne  Wengert

    Request.ServerVariables("HTTP_REFERER")

    Wayne Wengert, Sep 27, 2003, in forum: ASP General
    Replies:
    3
    Views:
    132
    Wayne Wengert
    Sep 27, 2003
  5. JW
    Replies:
    2
    Views:
    391
    Tony B
    Nov 2, 2003
Loading...

Share This Page