From d8804f4747b0214a3aca45ecdf6cb2f6a9d09646 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 15 Oct 2017 22:11:43 -0700 Subject: App: added --request-header option. --- MANUAL.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'MANUAL.txt') diff --git a/MANUAL.txt b/MANUAL.txt index 7b5b28423..b71ea13fd 100644 --- a/MANUAL.txt +++ b/MANUAL.txt @@ -130,10 +130,11 @@ pandoc will fetch the content using HTTP: pandoc -f html -t markdown http://www.fsf.org -It is possible to supply a custom User-Agent string when requesting a -document from a URL, by setting an environment variable: +It is possible to supply a custom User-Agent string or other +header when requesting a document from a URL: - USER_AGENT="Mozilla/5.0" pandoc -f html -t markdown http://www.fsf.org + pandoc -f html -t markdown --request-header User-Agent:"Mozilla/5.0" \ + http://www.fsf.org If multiple input files are given, `pandoc` will concatenate them all (with blank lines between them) before parsing. This feature is disabled for @@ -728,6 +729,13 @@ General writer options `--resource-path=.:test` will search the working directory and the `test` subdirectory, in that order. +`--request-header=`*NAME*`:`*VAL* + +: Set the request header *NAME* to the value *VAL* when making + HTTP requests (for example, when a URL is given on the + command line, or when resources used in a document must be + downloaded). + Options affecting specific writers ---------------------------------- -- cgit v1.2.3