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. Advertisements

  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. Advertisements

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:
    802
    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,833
    Eric Lawrence [MSFT]
    Mar 3, 2004
  3. Jake
    Replies:
    4
    Views:
    13,292
    Craig Deelsnyder
    Apr 20, 2005
  4. Wayne  Wengert

    Request.ServerVariables("HTTP_REFERER")

    Wayne Wengert, Sep 27, 2003, in forum: ASP General
    Replies:
    3
    Views:
    240
    Wayne Wengert
    Sep 27, 2003
  5. JW
    Replies:
    2
    Views:
    527
    Tony B
    Nov 2, 2003
  6. JW
    Replies:
    1
    Views:
    520
    Aaron Bertrand [MVP]
    Nov 2, 2003
  7. F@yy@Z

    Request.ServerVariables("HTTP_REFERER")

    F@yy@Z, Jan 20, 2004, in forum: ASP General
    Replies:
    2
    Views:
    199
  8. JJA
    Replies:
    1
    Views:
    419
    Aaron [SQL Server MVP]
    Oct 26, 2004
Loading...