Home All Groups Group Topic Archive Search About
Author
12 Feb 2007 11:39 AM
Barry
Hi

there are 2 variables in PHP
$REMOTE_ADDR
$HTTP_REFERER

does anyone know what are the equivalent of these variables in ASP

TIA
Barry

Author
12 Feb 2007 1:56 PM
Michael Nemtsev
Hello Barry,

B> there are 2 variables in PHP
B> $REMOTE_ADDR

HttpContext.Current.Request.UserHostAddress;
or
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];

B> $HTTP_REFERER
B> does anyone know what are the equivalent of these variables in ASP

HttpRequest.UrlReferrer
but try HttpContext.Current.Request.ServerVariables["HTTP_REFERER"]; not sure


---
WBR,  Michael  Nemtsev [C# MVP].  Blog: http://spaces.live.com/laflour
team blog: http://devkids.blogspot.com/

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

AddThis Social Bookmark Button