CmdID

CmdID / Commands

wait4x-http

Wait for an HTTP(S) endpoint to become available with flexible validation options. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Wait for an HTTP endpoint to respond with a specific status code

wait4x http https://example.com/health --expect-status-code 200Identify

Wait for a response body to match a regex pattern

wait4x http https://api.example.com/status --expect-body-regex '\"status\":\s*\"healthy\"'Identify

Wait for a specific JSON field to exist using GJSON path syntax

wait4x http https://api.example.com/status --expect-body-json "services.database.status"Identify

Wait for a response with custom request headers

wait4x http https://api.example.com --request-header "Authorization: Bearer token123"Identify

Wait for a specific response header to match a value

wait4x http https://api.example.com --expect-header "Content-Type=application/json"Identify

Wait using a TLS client certificate

wait4x http https://example.com --cert-file path/to/cert.pem --key-file path/to/key.pemIdentify

Wait with a custom timeout and inverted check (wait for endpoint to go down)

wait4x http https://example.com/health --expect-status-code 200 --invert-check --timeout 60sIdentify