Client-side Data

  • Thread starter Thread starter Barry
  • Start date Start date
B

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
 
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) Michelangel
 
Back
Top