View Single Post
Old 03-13-2011, 04:40 AM   #2
Crosma

Crosma's Avatar
Exclamation Re: ping alternatives?
Code:
crosma@Necktie.local:~$ curl -w "%{time_connect} seconds" -I http://www.3drealms.com/
HTTP/1.1 200 OK
Date: Sun, 13 Mar 2011 10:50:13 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Fri, 03 Sep 2010 19:33:35 GMT
ETag: "60009271-af19-48f6001b341c0"
Accept-Ranges: bytes
Content-Length: 44825
Connection: close
Content-Type: text/html

0.433 seconds
This is only the time it took to connect to the server. Name resolution, time to send the request, receipt of header and download time are not included. I believe this is the time you want, since it's the most comparable to a ping.
__________________
(define love (lambda () (map conquer all)))
Last edited by Crosma; 03-13-2011 at 04:53 AM.
Crosma is offline