Http
Index¶
http::curl¶
Run curl with flags suitable for non-interactive use: disables ~/.curlrc, fails on HTTP errors.
Arguments¶
- ... (additional): curl arguments and URL
http::wget¶
Run wget with flags suitable for non-interactive use: disables ~/.wgetrc.
Arguments¶
- ... (additional): wget arguments and URL
http::url_reachable¶
Predicate: is the URL reachable? Uses a HEAD request (no body download).
Arguments¶
- $1 URL
Exit codes¶
- 0: if reachable
- 1: otherwise