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

Identify Remote Web Server

P: n/a
Hi, I am trying to find the type of web server being used at a remote
website, but have no idea where to start to be honest. I have written a
webpage class that gathers information about that webpage (keywords and
links etc), I need to find whether the server the webpage is on is either
IIS or Linux etc. Any pointers to a class which I could work with in the
..NET 2 FCL to accomplish this?

--

James Jenkins
http://www.bandwidthvista.com

Sep 25 '06 #1
Share this Question
Share on Google+
4 Replies


P: n/a
You would need to look in the HTTP Headers to see if the server told you. If
it didn't then there is no way to tell AFAIK.

HTH

Ciaran O'Donnell

"James" wrote:
Hi, I am trying to find the type of web server being used at a remote
website, but have no idea where to start to be honest. I have written a
webpage class that gathers information about that webpage (keywords and
links etc), I need to find whether the server the webpage is on is either
IIS or Linux etc. Any pointers to a class which I could work with in the
..NET 2 FCL to accomplish this?

--

James Jenkins
http://www.bandwidthvista.com

Sep 25 '06 #2

P: n/a
Thus wrote James,
Hi, I am trying to find the type of web server being used at a remote
website, but have no idea where to start to be honest. I have written
a webpage class that gathers information about that webpage (keywords
and links etc), I need to find whether the server the webpage is on is
either IIS or Linux etc. Any pointers to a class which I could work
with in the .NET 2 FCL to accomplish this?
Use either System.Net.WebClient or System.Net.HttpWebRequest to send a HTTP
request and check the HTTP header "Server" in the response.

Note that many sites don't send Server headers, because doing that may reveal
security vulnerabilities.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Sep 25 '06 #3

P: n/a
Thanks to both of you. I will wondered if there was a way to get a
HttpWebResponse from the Webbrowser control in any way but this doesn' seem
possilbe. I have mshtml wired in also but still no properties, does anyone
know any better?

Thanks
James
http://www.bandwidthvista.com
"Joerg Jooss" <ne********@joergjooss.dewrote in message
news:94**************************@msnews.microsoft .com...
Thus wrote James,
>Hi, I am trying to find the type of web server being used at a remote
website, but have no idea where to start to be honest. I have written
a webpage class that gathers information about that webpage (keywords
and links etc), I need to find whether the server the webpage is on is
either IIS or Linux etc. Any pointers to a class which I could work
with in the .NET 2 FCL to accomplish this?

Use either System.Net.WebClient or System.Net.HttpWebRequest to send a
HTTP request and check the HTTP header "Server" in the response.

Note that many sites don't send Server headers, because doing that may
reveal security vulnerabilities.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de


Sep 25 '06 #4

P: n/a
Thus wrote James,
Thanks to both of you. I will wondered if there was a way to get a
HttpWebResponse from the Webbrowser control in any way but this doesn'
seem possilbe. I have mshtml wired in also but still no properties,
does anyone know any better?
I guess you can combine the two by using HttpWebRequest/HttpWebResponse to
download local copies, and let the WebBrowser control display these copies.

Cheers,
--
Joerg Jooss
ne********@joergjooss.de
Sep 26 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.