HTTP GET ping (3 requests)
Ping https://example.com three times with HTTP GET and report each request's status code, round-trip time, and response size. example.com is reserved by IANA (RFC 2606) for documentation use, so it is safe to hit from a demo. -n 3 caps the request count so the demo finishes in a few seconds; without it, http-ping defaults to 4 requests with a 1-second pause between each.
Quick HEAD-only ping with verbose output (2 requests)
Use -q to send HTTP HEAD requests instead of full GETs (headers only, no body bytes counted) and -v to print verbose per-request detail including request and response headers. -n 2 keeps the demo brief. Useful when you want to verify a URL is reachable and inspect the response headers without paying the cost of fetching the body.
Parsed ping result (typed struct via ping() helper)
Call the wrapper's ping(target, method, count, interval, followRedirects, formParams, userAgent, headers, proxyUrl, ipv4, ipv6) helper. The helper always passes -d so per-reply timestamps come back, then parses http-ping's stdout into a typed struct: target / sent / received / lost / lossPercent / minMs / maxMs / avgMs / deviationMs, plus a results array of {status, bytes, time, date} per reply. All timing values have the 'ms' suffix stripped and are javacast to int. The Result panel shows the parsed struct; the raw EXE output remains in the Output panel for reference.
# http-ping - Help
Source: https://www.coretechnologies.com/products/http-ping/
```
http-ping
=========
Synopsis: Pings a specified URL.
Usage: http-ping [-t] [-n count] [-i interval] [-f file-name] [-s] [-v]
[-q] [-c] [-r] [-w timeout] [-d] [-o data | -of file-name]
[-ua user-agent] [-h header-line] [-p [proxy-url]]
[-e | -et | -eb] [-ipv4 | -ipv6] URL
Where:
URL The URL you wish to check. For example http://www.kiva.org,
http://209.191.122.70, or http://www.yourhost:8080.
Be sure to surround an IPv6 address with square brackets,
for example, http://[2a00:1450:4007:800::1014].
Options:
-t Ping the specified URL until stopped.
To see statistics and continue - type Control-Break;
To stop - type Control-C.
-n count Send 'count' requests. Supercedes -t.
-i interval Wait 'interval' seconds between each request. There is a
1-second wait if this option is not specified.
-f file-name Save responses to file 'file-name'. Please specify the full
path, and use quotes if the file name contains spaces.
-s Silent. Print no output.
-v Verbose. Print detailed output. Supercedes -s.
-q Quick. Perform HTTP HEAD requests instead of GETs. This
will retrieve headers only, and bytes reported wil be 0.
-c Perform a full connection on each request; ignore
keep-alive.
-r Follow HTTP redirects.
-w timeout Wait 'timeout' seconds for a response before timing out.
Specify 0 to avoid timing out.
If not specified, the default timeout is 30 seconds.
-d Print the date and time of each ping attempt.
-o data Perform HTTP POSTs sending the given data. Please enclose
the data in quotes if it contains spaces.
-of file-name Perform HTTP POSTs sending the contents of file
'file-name'. Please specify the full path, and use quotes
if the file name contains spaces.
-ua user-agent Set the User-Agent value to 'user-agent'. Please use quotes
if the value contains spaces.
-h header-line Pass the given header line as-is in each ping request. For
example, add a host header like this:
-h "Host: www.site1.com"
Be sure to surround the header-line with quotes. You can
specify multiple instances of this option.
-p [proxy-url] Use the proxy URL specified. If no proxy URL is specifed,
use the value in the Windows Internet settings.
-e Instead of returning the percentage of requests that
succeeded, return the HTTP status code of the last request,
or 0 if the last request failed.
-et Instead of returning the percentage of requests that
succeeded, return the time taken (in milliseconds) by the
last request, or 0 if the last request failed.
-eb Instead of returning the percentage of requests that
succeeded, return the number of bytes transferred by the
last request, or 0 if the last request failed.
-ipv4 Force IPv4 resolution for dual-stacked sites.
-ipv6 Force IPv6 resolution for dual-stacked sites.
Exit code: The percentage of requests that succeed, or either the HTTP
status code, time taken, or the number of bytes transferred
of the last request or 0 if the last request failed.
Version: 11.5.0.62 (Mar 26 2024)
Examples: > http-ping http://www.yahoo.com
- Pings the yahoo home page 4 times.
> http-ping -t http://localhost:8080
- Repeatedly pings the web server at port 8080 on your
local machine until stopped.
---------------------------------------------------------------------------
This free utility is Copyright 2024, Core Technologies Consulting, LLC.
Find out about this and our other products at our web site:
https://www.CoreTechnologies.com/
---------------------------------------------------------------------------
```