Home All Groups Group Topic Archive Search About

what is Request.ServerVariables

Author
10 Jun 2005 12:50 PM
Andy Fish
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

Author
10 Jun 2005 12:56 PM
Aaron Corcoran
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
Are all your drivers up to date? click for free checkup

Author
10 Jun 2005 1:29 PM
Andy Fish
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?



Show quoteHide quote
"Aaron Corcoran" <acorco***@lasers.state.la.us> wrote in message
news:1118408170.593187.50530@g43g2000cwa.googlegroups.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
>
Author
10 Jun 2005 2:01 PM
Juan T. Llibre
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/quickstart/aspplus/samples/classbrowser/vb/classbrowser.aspx?assembly=System.Web,%20Version=1.0.5000.0,%20Culture=neutral,%20PublicKeyToken=b03f5f7f11d50a3a&namespace=System.Web&class=HttpRequest






Juan T. Llibre
ASP.NET MVP
http://asp.net.do/foros/
Foros de ASP.NET en Español
Ven, y hablemos de ASP.NET...
======================

Show quoteHide quote
"Andy Fish" <ajf***@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" <acorco***@lasers.state.la.us> wrote in message
> news:1118408170.593187.50530@g43g2000cwa.googlegroups.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
>>
>
>
Author
10 Jun 2005 12:57 PM
Teemu Keiski
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



Show quoteHide quote
"Andy Fish" <ajf***@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
>
>

Bookmark and Share