By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,889 Members | 1,358 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,889 IT Pros & Developers. It's quick & easy.

querying http connection characteristics

P: n/a
Given a server and an internet client, can the server (or client) determine
the characteristics of the connection? for instance, whether it's running
through a proxy, what the connection speed is, etc?

assuming there is no "dotnet" way to do this, can it be done in any other
way?
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
WoodBeeProgrammer,

If you are using one of the higher level programming construct
(HttpWebRequest for example), then you can get a limited set of information.
This is assuming that you are using this. There is a Proxy property on the
WebRequest class that has information about the proxy that is being used, if
there is one.

However, for more specific information, the best you can do is get the
socket, and query that for information, as well as possibly the performance
counters. The problem with the performance counters is being able to link
the data to the specific instances that you want to get stats for.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"WoodBeeProgrammer" <Wo***************@spamex.com> wrote in message
news:10**************@utility.isomedia.com...
Given a server and an internet client, can the server (or client) determine the characteristics of the connection? for instance, whether it's running
through a proxy, what the connection speed is, etc?

assuming there is no "dotnet" way to do this, can it be done in any other
way?

Nov 15 '05 #2

P: n/a
Nicholas, thanks.

This does bring to mind another question-- why is it that RealAudio, OE,
groove etc ask the user to specify stuff about their links such speed
category and proxy server stuff. Can they not get this information
programmatically as below? or is the information intrinsically unreliable?
(or are they just lazy?)

TIA
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:uG*************@tk2msftngp13.phx.gbl...
WoodBeeProgrammer,

If you are using one of the higher level programming construct
(HttpWebRequest for example), then you can get a limited set of information. This is assuming that you are using this. There is a Proxy property on the WebRequest class that has information about the proxy that is being used, if there is one.

However, for more specific information, the best you can do is get the
socket, and query that for information, as well as possibly the performance counters. The problem with the performance counters is being able to link
the data to the specific instances that you want to get stats for.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"WoodBeeProgrammer" <Wo***************@spamex.com> wrote in message
news:10**************@utility.isomedia.com...
Given a server and an internet client, can the server (or client)

determine
the characteristics of the connection? for instance, whether it's running through a proxy, what the connection speed is, etc?

assuming there is no "dotnet" way to do this, can it be done in any other way?


Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.