What that site is running?

  • Thread starter ASP.NET explorer
  • Start date
J

Jon Skeet [C# MVP]

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...
 
G

Guest

Actually, a HEAD, rather than a GET Request would be sufficient, without
having the extra overhead of the entire request body.
Peter
 
?

=?ISO-8859-1?Q?Arne_Vajh=F8j?=

A

ASP.NET explorer

You put me to the right place.

Thank you so much !


Arne Vajhøj said:
ASP.NET explorer said:
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_report?url=http://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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top