473,385 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Identify Remote Web Server

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
4 1425
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kamesh | last post by:
Hi Folks, how to identify 2 different session on same machine, same/nearly same logon time that is running on a oracle server. We have different sid,serial# but how to identify they both are...
7
by: iqbal | last post by:
Hi all, We have an application through which we are bulk inserting rows into a view. The definition of the view is such that it selects columns from a table on a remote server. I have added the...
0
by: bettervssremoting | last post by:
To view the full article, please visit http://www.BetterVssRemoting.com Better VSS Remote Access Tool including SourceOffSite, SourceAnyWhere and VSS Remoting This article makes a detailed...
4
by: Goh | last post by:
Hi, I would like to know how can we implement a web page that intelligent enough to unique identify that pc have been visit before without any cookies and login user require. I have try...
3
by: Michel | last post by:
Hi, I wrote an app in .Net and I whant only 1 instance of this app open for the user; the user open my app, do some works and try to open another instance of my app, I whant to show a message to...
4
by: Noy B | last post by:
Hi, I have developed a small application that is using a MSAccess DB. the problem is that it was developed on a machine where the application and the DB are both located. now it needs to be...
1
by: rejoybhaskar | last post by:
hi, is it possible to identify the internet bandwidth used by the remote system so that if it is high we can provide them a flash site else a low image content site. thanks n advance
5
by: Cirene | last post by:
I just deployed my new ASP.NET (3.5 FW) site to the hosting company I'm using, webhost4life. NOTE: I HAVE deployed other SQL Server sites to the same account with no issues. Now I'm getting...
7
by: RN1 | last post by:
Is it possible to connect to my local SQL Server 2005 database from a remote web server? If yes, what ConnectionString do I use? Thanks, Ron
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.