In order to know which server a site is running I can use netcat.

Through the following command I can gather information about the type of server installed.

netcat -vv www.example.com 80

But if immediately after that I typed GET / HTTP/1.1 what actually would I do?

  • A second return hit?... You could prefer HEAD / HTTP/1.0 instead, for inquiring about webserver.
    – F. Hauri
    Dec 30, 2012 at 12:31

3 Answers 3


try this:

$ netcat example.com 80 <<END
Host: example.com


The $ is a command prompt; not actually typed.

It's about as simple an HTTP request as you can get without breaking 1.1 compatibility. You'll get a Server: header which will identify the destination server software.

Alternately (and perhaps more interestingly) just use a real http client, either something like wget or curl or perl's libwww commands. Just display response headers and there you go.

  • Alternatively, if you'd prefer a GUI, press Ctrl+Shift+K in Firefox to load up the web developer console, click the Net button to enable network logging, right click the open space and tick "Log Request and Response bodies". Each HTTP request will then be logged, and you can go to properties on each entry to see the full set of headers and content sent and received.
    – Polynomial
    Dec 30, 2012 at 0:20
  • 1
    Similar functionality exists for Chrome. See the "Network" tab of the developer tools. And if you're using IE, then you're on the wrong site.
    – tylerl
    Dec 30, 2012 at 0:23

Once you are connected with netcat, you just have to type GET and hit Enter. The response will contain the web server type and maybe the version.

  • 1
    That would not be a well-formed HTTP request.
    – Polynomial
    Dec 30, 2012 at 0:17
$ echo -en "GET / HTTP/1.0\n\n\n"|nc google.com 80|grep Server
Server: gws

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.