[Network] Http Ping
This module allows you to send an HTTP GET request to a specified URL. Its purpose is to send the request and get the returned HTTP status code of the request. So, it is meant for purposes where you either need to send an HTTP request for an external site or process. An example may be keeping a specific page of a website loaded in cache. Or to do a basic status code check of a specified URL in order to make sure a site or webserver is alive and responding.
The parameters that the module uses are detailed in the following table.
| Parameter | I/O | Description |
|---|---|---|
| URL | In | The URL to retrieve via a GET request. The desired protocol should be included as part of the URL. Examples: http://www.example.com/sample-page-1.html https://example.com/another-example |
| UserAgent | In | The user-agent reported in the header part of the request. The default value mimics an older version of the Chrome browser installed on Windows 10 with the version of JobServer noted in the product comment. |
| LogOutputLevel | In | Minimal: Normal output to the log. Verbose: More detailed output is written to the log, suitable for debugging purposes. |
| ResponseCode | Out | The HTTP response code returned from the request. This is the integer value of the response code, thus a HttpStatusCode.OK will return the corresponding integer value of 200. |
| ResponseTimeInMS | Out | The amount of time in milliseconds (ms) the response took. |