Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What is the difference between a ping and a get request? The goal is to see if the site is up.

share|improve this question

closed as not a real question by Chopper3 Jun 21 '11 at 20:31

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Question is vague, could do with a lot more detail to get a good answer. –  EightBitTony Jun 21 '11 at 17:56

4 Answers 4

up vote 10 down vote accepted

Ping only checks if the remote host is answering ICMP packets, which (usually) means it's up and running; but this doesn't give you any information about which services the host is actually offering.

An HTTP GET request checks that there is a web server running on the host, that it answers to a given IP/port/hostname combo, that you asked it for a valid URL and that the web site is able to answer your request.

Example: if IIS (or Apache) is stopped on the host, it will very well answer a Ping request, but a HTTP GET will fail.

share|improve this answer

ping checks purely for an end-to-end network connection (ICMP). get (assuming you mean wget, or something similar) checks to see if an application is listening and can respond on the end of that network connection.

I've assumed you mean a network ping and not some kind of application ping, but your query is pretty vague.

share|improve this answer
    
Ping is not TCP/IP... it's ICMP/IP. –  Massimo Jun 21 '11 at 18:00
    
@Massimo yep, slip of the protocol. –  EightBitTony Jun 21 '11 at 18:02

Ping is a network packet at Layer 4 of the OSI Model, while GET is HTTP at Layer 6 with the presentation aspects of the HTTP application protocol.

Ping checks networking functionality, while GET will include the OS as well as the application protocol aspects - when used during diagnostics/testing.

share|improve this answer

The L4 utility Ping uses the ICMP protocol and is a function in itself, a L6 http get uses the http/https protocol to grab some data and is a function of the http protocol.

share|improve this answer

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