I just came across the HttpRequest.ServerVaraibles collection which the
documentation helpfully explains contains "a collection of server variables"
What on earth is a server variable? where do these variables come from? what
variables can I expect to be present? what do they mean? I can't find any
documentation in MSDN at all.
TIA
AndyAndy,
I think this page from 4guysfromrolla.com will aid in your quest:
http://www.4guysfromrolla.com/webtech/092298-3.shtml
It provides a wonderful overview of the request.servervariables object
and I think you will find some of its functionality quite nice,
depending on the type of application you are writing.
Aaron
They are preset variables containing information about the server and the
request. Like version of the server software, name/type of the server (IIS)
and so on.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Andy Fish" <ajfish@.blueyonder.co.uk> wrote in message
news:%23A7o1rbbFHA.3184@.TK2MSFTNGP15.phx.gbl...
> Hi,
> I just came across the HttpRequest.ServerVaraibles collection which the
> documentation helpfully explains contains "a collection of server
> variables"
> What on earth is a server variable? where do these variables come from?
> what variables can I expect to be present? what do they mean? I can't find
> any documentation in MSDN at all.
> TIA
> Andy
Thanks
It seems strange that the asp.net documentation only makes a passing
reference to it.
I notice that your link refers to "classic" asp (pre dotnet). Is the server
variables thing provided mainly to ease porting of pre .net apps?
"Aaron Corcoran" <acorcoran@.lasers.state.la.us> wrote in message
news:1118408170.593187.50530@.g43g2000cwa.googlegro ups.com...
> Andy,
> I think this page from 4guysfromrolla.com will aid in your quest:
> http://www.4guysfromrolla.com/webtech/092298-3.shtml
> It provides a wonderful overview of the request.servervariables object
> and I think you will find some of its functionality quite nice,
> depending on the type of application you are writing.
> Aaron
re:
> I notice that your link refers to "classic" asp (pre dotnet). Is the server variables
> thing provided mainly to ease porting of pre .net apps?
That's because the server variables are being provided by IIS,
which is the http server infrastructure which both ASP and
ASP.NET extend.
Both ASP and ASP.NET can access IIS's Server Variables.
Many, though not all, are available through the HttpRequest class in
System.Web ( the Request object ) if you wish to use native ASP.NET methods.
See :
http://www.csharpfriends.com/quicks...ass=HttpRequest
Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Espaol
Ven, y hablemos de ASP.NET...
======================
"Andy Fish" <ajfish@.blueyonder.co.uk> wrote in message
news:eq1XECcbFHA.2896@.TK2MSFTNGP10.phx.gbl...
> Thanks
> It seems strange that the asp.net documentation only makes a passing reference to it.
> I notice that your link refers to "classic" asp (pre dotnet). Is the server variables
> thing provided mainly to ease porting of pre .net apps?
>
> "Aaron Corcoran" <acorcoran@.lasers.state.la.us> wrote in message
> news:1118408170.593187.50530@.g43g2000cwa.googlegro ups.com...
>> Andy,
>>
>> I think this page from 4guysfromrolla.com will aid in your quest:
>>
>> http://www.4guysfromrolla.com/webtech/092298-3.shtml
>>
>> It provides a wonderful overview of the request.servervariables object
>> and I think you will find some of its functionality quite nice,
>> depending on the type of application you are writing.
>>
>> Aaron
>>
0 comments:
Post a Comment