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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top