diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/cmdline-opts/Makefile.inc | 2 | ||||
-rw-r--r-- | docs/cmdline-opts/etag-compare.d | 17 | ||||
-rw-r--r-- | docs/cmdline-opts/etag-save.d | 15 |
3 files changed, 34 insertions, 0 deletions
diff --git a/docs/cmdline-opts/Makefile.inc b/docs/cmdline-opts/Makefile.inc index fd29dfb23..829551ff6 100644 --- a/docs/cmdline-opts/Makefile.inc +++ b/docs/cmdline-opts/Makefile.inc @@ -38,6 +38,8 @@ DPAGES = \ dump-header.d \ egd-file.d \ engine.d \ + etag-save.d \ + etag-compare.d \ expect100-timeout.d \ fail-early.d \ fail.d \ diff --git a/docs/cmdline-opts/etag-compare.d b/docs/cmdline-opts/etag-compare.d new file mode 100644 index 000000000..1c1364f43 --- /dev/null +++ b/docs/cmdline-opts/etag-compare.d @@ -0,0 +1,17 @@ +Long: etag-compare +Arg: <file> +Help: Pass an ETag from a file as a custom header +Protocols: HTTP +--- +This option makes a conditional HTTP request for the specific +ETag read from the given file by sending a custom If-None-Match +header using the extracted ETag. + +For correct results, make sure that specified file contains only a single +line with a desired ETag. An empty file is parsed as an empty ETag. + +Use the option --etag-save to first save the ETag from a response, and +then use this option to compare using the saved ETag in a subsequent request. + +\fCOMPARISON\fP: There are 2 types of comparison or ETags, Weak and Strong. +This option expects, and uses a strong comparison. diff --git a/docs/cmdline-opts/etag-save.d b/docs/cmdline-opts/etag-save.d new file mode 100644 index 000000000..fa0694d14 --- /dev/null +++ b/docs/cmdline-opts/etag-save.d @@ -0,0 +1,15 @@ +Long: etag-save +Arg: <file> +Help: Parse ETag from a request and save it to a file +Protocols: HTTP +--- +This option saves an HTTP ETag to the specified file. Etag is +usually part of headers returned by a request. When server sends an +ETag, it must be enveloped by a double quote. This option extracts the +ETag without the double quotes and saves it into the <file>. + +A server can send a week ETag which is prefixed by "W/". This identifier +is not considered, and only relevant ETag between quotation marks is parsed. + +It an ETag wasn't send by the server or it cannot be parsed, and empty +file is created. |