Skip to content

url

A set of tasks to check URL with curl.

List of tasks

Tasks Description
url:check Check response code of an URL. Arguments: URL|U=http://url (*)
url:perf Get performance of an URL. Arguments: URL|U=http://url [FILE|F=./perf_url.txt] (*)

global variables

Variables Description Default value
- - -

url:check

Check response code of an URL. Arguments: URL|U=http://url (*)

[URL] Check response code of an URL.
Usage: task url:check URL|U=http://url
Arguments Description
URL | U Url to check (required)

Requirements:

  • curl

url:perf

Get performance of an URL. Arguments: URL|U=http://url [FILE|F=./perf_url.txt] (*)

[URL] Get response code of URL.
Usage: task url:perf URL|U=http://url [FILE|F=<file_path>]
Arguments Description
URL | U URL to check (required)
FILE | F File path (optional, if not set output to terminal)

Note: definition of metrics can be found here: https://blog.cloudflare.com/a-question-of-timing

Requirements:

  • curl