473,396 Members | 1,722 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,396 software developers and data experts.

What that site is running?

http://news.netcraft.com/ has a simple utility "What that site is running?"
that lets us know the server software of a website.

http://toolbar.netcraft.com/site_rep...://www.sap.com

I am just wondering how this checker utility can coded in C-sharp?

Thanks,
lmn
May 4 '07 #1
5 1506
This is easy

If we send a " GET " to a web server at port 80, it will return us
something similar to this:
HTTP/1.0 200 OK
Date: Fri, 18.Feb 2000 09:42:29 GMT
Server: Apache/1.3.6 (Unix) <=== Cool hey
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
...
...
Codigo HTML
...


http://www.auratius.co.za/sourcecode.asp

or

http://www.auratius.co.za/CodeBook.asp

May 4 '07 #2
<au******@gmail.comwrote:
If we send a " GET " to a web server at port 80, it will return us
something similar to this:
HTTP/1.0 200 OK
Date: Fri, 18.Feb 2000 09:42:29 GMT
Server: Apache/1.3.6 (Unix) <=== Cool hey
There's more to in than that. I believe Netcraft analyses the low level
TCP/IP implementation to make an educated guess as to the operating
system - that's much harder to forge than an HTTP header, unless you
really want to start replacing your TCP/IP stack with a different one.

Of course, the header information may be good enough for the OP...

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
May 4 '07 #3
Actually, a HEAD, rather than a GET Request would be sufficient, without
having the extra overhead of the entire request body.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"au******@gmail.com" wrote:
This is easy

If we send a " GET " to a web server at port 80, it will return us
something similar to this:
HTTP/1.0 200 OK
Date: Fri, 18.Feb 2000 09:42:29 GMT
Server: Apache/1.3.6 (Unix) <=== Cool hey
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
...
...
Codigo HTML
...


http://www.auratius.co.za/sourcecode.asp

or

http://www.auratius.co.za/CodeBook.asp

May 5 '07 #4
ASP.NET explorer wrote:
http://news.netcraft.com/ has a simple utility "What that site is running?"
that lets us know the server software of a website.

http://toolbar.netcraft.com/site_rep...://www.sap.com

I am just wondering how this checker utility can coded in C-sharp?
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "HEAD";
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
// now use resp.Headers["Server"]

Arne

May 5 '07 #5
You put me to the right place.

Thank you so much !
"Arne Vajhøj" <ar**@vajhoej.dkwrote in message
news:46***********************@news.sunsite.dk...
ASP.NET explorer wrote:
>http://news.netcraft.com/ has a simple utility "What that site is
running?" that lets us know the server software of a website.

http://toolbar.netcraft.com/site_rep...://www.sap.com

I am just wondering how this checker utility can coded in C-sharp?

HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
req.Method = "HEAD";
HttpWebResponse resp = (HttpWebResponse)req.GetResponse();
// now use resp.Headers["Server"]

Arne

May 6 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jonathan | last post by:
I am trying to upload a new version of a file that already exists on my web site. It asks me to overwrite and I choose yes. But when I go to the web page, even a half hour after the upload, the...
2
by: Hari | last post by:
Hi, How can I find out what site a visitor has come from using ASP? Suppose my website is sample.com and I have one page in the website that is used by the visitor to request products and...
4
by: moondaddy | last post by:
I've made the decision to use search engine friendly URLs in my site which means translating stripping all parameters our of the URL and converting it to a hierarchical URL like this: Change:...
5
by: cdlipfert | last post by:
Our intranet is running under windows integrated security. We have domain users that want to access our intranet site via ssl vpn. SSL VPN can not authenticate against services that run under...
1
by: O'O | last post by:
There are many asp.net applications running on my server. Sometimes aspnet_wp process consumes 100% of processor time. I want to find out, which application causes this. There is probably a bug in...
21
by: thomson | last post by:
Hi folks, Does any one have any idea which platform does GMAIL works, whether its JSP, ASPX or any other Regards thomson
4
by: news.citenet.net | last post by:
I keep getting the following error message after my web site running 2 or 3 days I share one folder with about 200 domain names Any one can help? ...
2
by: DDD | last post by:
I have a web site project using C#. If I release the web site in the VS2005, all works well except that DLL file name has some strange, name APP_Code_erwer234.dll. And erwer234 is a random string....
1
by: Sam | last post by:
Hi, I have a web site in a hosting space but now I want to make it run in my server(in my office). Mainly the web site will be above all used within office LAN. Sometimes it could occur that it...
12
by: AtTheEnd | last post by:
Hi, There is a site running on a Windows 2000 server with mysql 4.0. It's been copied to a new server running Windows 2003 and mysql 4.1. The database has been copied in its entirety. When I...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.