aboutsummaryrefslogtreecommitdiff
path: root/docs/cmdline-opts/metalink.d
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2016-11-16 14:20:36 +0100
committerDaniel Stenberg <daniel@haxx.se>2016-11-16 15:15:57 +0100
commit342aa4797edfabba78755e798d23a5b6d288d50b (patch)
treec9607e88e05cef2f5084f6428151c5de52ee2fc4 /docs/cmdline-opts/metalink.d
parentc3c1e9618513d245861c35ec0c563ab71ce892bb (diff)
cmdline-docs: more conversion
Diffstat (limited to 'docs/cmdline-opts/metalink.d')
-rw-r--r--docs/cmdline-opts/metalink.d27
1 files changed, 27 insertions, 0 deletions
diff --git a/docs/cmdline-opts/metalink.d b/docs/cmdline-opts/metalink.d
new file mode 100644
index 000000000..8047e9f51
--- /dev/null
+++ b/docs/cmdline-opts/metalink.d
@@ -0,0 +1,27 @@
+Long: metalink
+Help: Process given URLs as metalink XML file
+Added: 7.27.0
+Requires: metalink
+---
+This option can tell curl to parse and process a given URI as Metalink file
+(both version 3 and 4 (RFC 5854) are supported) and make use of the mirrors
+listed within for failover if there are errors (such as the file or server not
+being available). It will also verify the hash of the file after the download
+completes. The Metalink file itself is downloaded and processed in memory and
+not stored in the local file system.
+
+Example to use a remote Metalink file:
+
+ curl --metalink http://www.example.com/example.metalink
+
+To use a Metalink file in the local file system, use FILE protocol (file://):
+
+ curl --metalink file://example.metalink
+
+Please note that if FILE protocol is disabled, there is no way to use a local
+Metalink file at the time of this writing. Also note that if --metalink and
+--include are used together, --include will be ignored. This is because
+including headers in the response will break Metalink parser and if the
+headers are included in the file described in Metalink file, hash check will
+fail.
+