http-ping: Command line tool to ping/validate the URLs

C:>http-ping http://www.flos-freeware.ch/zip/notepad2.zip

Pinging “http://www.flos-freeware.ch/zip/notepad2.zip”:

1> Reply: [200/OK] bytes=285934 time=10585ms
2> Reply: [200/OK] bytes=285934 time=10667ms
3> Reply: [200/OK] bytes=285934 time=8408ms
4> Reply: [200/OK] bytes=285934 time=7342ms

Ping statistics for “http://www.flos-freeware.ch/zip/notepad2.zip”:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
Minimum = 7342ms, Maximum = 10667ms, Average = 9251ms

—————————————————————————
This free utility is Copyright 2009, Core Technologies Consulting, LLC.
Find out about this and our other products at our web site:
http://www.CoreTechnologies.com/
—————————————————————————

C:>

If you want to code for yourself start from here…

‘===============================================================================
‘ main()
‘===============================================================================
On Error Resume Next
Set objArgs = WScript.Arguments
Set xmlhttp = Wscript.CreateObject(“Microsoft.xmlhttp”)
xmlhttp.open “GET”, objArgs(0), False
xmlhttp.send

WScript.Echo “Checking Accessibility of URL:[” & objArgs(0) & “]”
WScript.Echo “HTTP GET Call Return code:    [” & xmlhttp.status & “]”
‘===============================================================================
‘ End
‘===============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *