Forum Archive

Go Back   3D Realms Forums > General Topics > Software Forum
Blogs FAQ Members List Social Groups Calendar Mark Forums Read


Thread Tools
Old 03-05-2011, 11:54 PM   #1

ixfd64's Avatar
ping alternatives?
I know that ping is a very useful tool for testing the connectivity to a website. However, there's a little problem: some servers are configured to not respond to ICMP requests, in which case the user will get a "Request timed out" message.

If this happens, are there any other ways to see how long it takes to connect to a site? For example, would sending an HTTP request to see how long it takes to load the first X bytes of the home page work in the same manner as ping?
*fires Devastator at next poster*

Visit my forums!
ixfd64 is offline  
Old 03-13-2011, 04:40 AM   #2

Crosma's Avatar
Exclamation Re: ping alternatives?
crosma@Necktie.local:~$ curl -w "%{time_connect} seconds" -I
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  
Old 03-27-2011, 11:44 AM   #3

ixfd64's Avatar
Re: ping alternatives?
Yeah, that was what I was thinking of. Thanks.
*fires Devastator at next poster*

Visit my forums!
ixfd64 is offline  


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 09:33 PM.

Page generated in 0.11181688 seconds (100.00% PHP - 0% MySQL) with 18 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2021, vBulletin Solutions, Inc.

Website is 1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.