ASP - How to get URL of Referring Site

爱⌒轻易说出口 提交于 2019-12-05 13:31:05

问题


This is an ASP question, not ASP.Net.

Assume there are two sites:

  1. www.domain-1.com
  2. www.domain-2.com

www.domain-1.com has a redirection URL in IIS that points to www.domain-2.com. In www.domain-2.com, I need to know the URL of the referring site (e.g. in this case, it would be www.domain-1.com). How is this done?


回答1:


referer = Request.ServerVariables ("HTTP_REFERER")



来源:https://stackoverflow.com/questions/2286327/asp-how-to-get-url-of-referring-site

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!