Using ASP HTTP_REFERER server variable to choose between 2 differentincludes files?
am 24.01.2008 17:45:35 von DC
Is ther an easy way of using the HTTP_REFERER server variable to choose
between 2 different includes files?
Eg:
<%
If HTTP_REFERER="Url 1" then
else
EndIf
%>
Obviouslythe above wont work due to bracketing, but is there an easy way
around this?
Thanks in advance,
DC
Re: Using ASP HTTP_REFERER server variable to choose between 2 different includes files?
am 24.01.2008 18:22:48 von mark
"DC" wrote in message
news:fnafbf$sm8$1@south.jnrs.ja.net...
> Is there an easy way of using the HTTP_REFERER server variable to choose
> between 2 different includes files?
Before you go much further with this, I should point out that HTTP_REFERER
cannot be relied upon at all on the public Internet, as more and more ISPs
are stripping this off web requests...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net
Re: Using ASP HTTP_REFERER server variable to choose between 2 different includes files?
am 24.01.2008 20:18:08 von Mark Fitzpatrick
Not like this. Keep in mind, asp commands are processed after things like
server side includes so this method will result in you having the two files
included in the page before ASP begins processing.
Just an FYI, this is not the ASP newsgroup, this is ASP.Net so you won't get
many helpful answers here. For questions regarding classic ASP you may want
to go to the microsoft.public.inetserver.asp.general newsgroup instead.
--
Hope this helps,
Mark Fitzpatrick
Microsoft MVP - Expression
"DC" wrote in message
news:fnafbf$sm8$1@south.jnrs.ja.net...
> Is ther an easy way of using the HTTP_REFERER server variable to choose
> between 2 different includes files?
>
> Eg:
>
> <%
> If HTTP_REFERER="Url 1" then
>
>
>
> else
>
>
>
> EndIf
> %>
>
> Obviouslythe above wont work due to bracketing, but is there an easy way
> around this?
>
> Thanks in advance,
>
> DC