Under what circumstances HttpContext.Current.Request.UrlReferrer is empty

Source: Internet
Author: User
Tags httpcontext

The situations where this servervariable works include the following methods of a browser loading a URL:
    • Clicking on a straight HTML <a href> link;
    • Submitting a form, using POST or GET, from a Submit button, <input type=image> or Client-side script (Form.submit ())
The situations where it doesn ' t work:
    • Clicking on a favorite, history, or the recently-typed URLs list;
    • Clicking on ' Home ' in IE's toolbar, or an item in IE ' Links ' toolbar;
    • Using Location.href or Location.replace () in Client-side jscript/javascript/vbscript;
    • Using Hiermenus (details);
    • Typing the URL directly in the browser and hitting Enter or clicking ' Go ';
    • Launching a clickable URL from an e-mail or MS Office document;
    • Using Response.redirect/server.transfer;
    • Using Response.AddHeader (302) or <meta http-equiv=refresh> to redirect;
    • Loading the URL with XML (see article #2173);
    • Misspelling the variable name (many people assume http_referrer).

Under what circumstances HttpContext.Current.Request.UrlReferrer is empty

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.