From f10421a52b3c11e2adbdbd36d87095cab676e656 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 14 Aug 2016 14:25:10 +1200 Subject: Add urlh(1) and urlmt(1) --- man/man1/urlh.1 | 17 +++++++++++++++++ man/man1/urlmt.1 | 15 +++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 man/man1/urlh.1 create mode 100644 man/man1/urlmt.1 (limited to 'man') diff --git a/man/man1/urlh.1 b/man/man1/urlh.1 new file mode 100644 index 00000000..5066c7d0 --- /dev/null +++ b/man/man1/urlh.1 @@ -0,0 +1,17 @@ +.TH URLH 1 "August 2016" "Manual page for urlh" +.SH NAME +.B urlh +\- search for URL header values by name +.SH SYNOPSIS +.B urlh +https://www.sanctum.geek.nz/ +Content-Type +.SH DESCRIPTION +.B urlh +makes a cURL HEAD request for the given URL, and searches the headers for a key +matching the given name, case-insensitively. It prints any matching values to +stdout. +.SH SEE ALSO +curl(1), urlmt(1) +.SH AUTHOR +Tom Ryder diff --git a/man/man1/urlmt.1 b/man/man1/urlmt.1 new file mode 100644 index 00000000..843f7d81 --- /dev/null +++ b/man/man1/urlmt.1 @@ -0,0 +1,15 @@ +.TH URLMT 1 "August 2016" "Manual page for urlmt" +.SH NAME +.B urlmt +\- try to get the MIME type of the document at the given URL +.SH SYNOPSIS +.B urlmt +https://www.sanctum.geek.nz/ +.SH DESCRIPTION +.B urlmt +uses urlh(1) to search for a Content-Type header for the given URL, and prints +it with any trailing data (e.g. charset) trimmed off. +.SH SEE ALSO +curl(1), urlh(1) +.SH AUTHOR +Tom Ryder -- cgit v1.2.3