From 808cb3175684074f281e398fd071a55bfcd9a004 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 4 Apr 2023 14:42:44 +0200 Subject: tool_writeout: add URL component variables Output specific components from the used URL. The following variables are added for this purpose: url.scheme, url.user, url.password, url.options, url.host, url.port, url.path, url.query, url.fragment, url.zoneid Add the following for outputting parts of the "effective URL": urle.scheme, urle.user, urle.password, urle.options, urle.host, urle.port, urle.path, urle.query, urle.fragment, urle.zoneid Added test 423 and 424 to verify. Closes #10853 --- docs/cmdline-opts/write-out.d | 64 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) (limited to 'docs') diff --git a/docs/cmdline-opts/write-out.d b/docs/cmdline-opts/write-out.d index bb26528b5..5a872007e 100644 --- a/docs/cmdline-opts/write-out.d +++ b/docs/cmdline-opts/write-out.d @@ -209,6 +209,70 @@ The total time, in seconds, that the full operation lasted. .B url The URL that was fetched. (Added in 7.75.0) .TP +.B url.scheme +The scheme part of the URL that was fetched. (Added in 8.1.0) +.TP +.B url.user +The user part of the URL that was fetched. (Added in 8.1.0) +.TP +.B url.password +The password part of the URL that was fetched. (Added in 8.1.0) +.TP +.B url.options +The options part of the URL that was fetched. (Added in 8.1.0) +.TP +.B url.host +The host part of the URL that was fetched. (Added in 8.1.0) +.TP +.B url.port +The port number of the URL that was fetched. If no port number was specified, +but the URL scheme is known, that scheme's default port number is +shown. (Added in 8.1.0) +.TP +.B url.path +The path part of the URL that was fetched. (Added in 8.1.0) +.TP +.B url.query +The query part of the URL that was fetched. (Added in 8.1.0) +.TP +.B url.fragment +The fragment part of the URL that was fetched. (Added in 8.1.0) +.TP +.B url.zoneid +The zoneid part of the URL that was fetched. (Added in 8.1.0) +.TP +.B urle.scheme +The scheme part of the effective (last) URL that was fetched. (Added in 8.1.0) +.TP +.B urle.user +The user part of the effective (last) URL that was fetched. (Added in 8.1.0) +.TP +.B urle.password +The password part of the effective (last) URL that was fetched. (Added in 8.1.0) +.TP +.B urle.options +The options part of the effective (last) URL that was fetched. (Added in 8.1.0) +.TP +.B urle.host +The host part of the effective (last) URL that was fetched. (Added in 8.1.0) +.TP +.B urle.port +The port number of the effective (last) URL that was fetched. If no port +number was specified, but the URL scheme is known, that scheme's default port +number is shown. (Added in 8.1.0) +.TP +.B urle.path +The path part of the effective (last) URL that was fetched. (Added in 8.1.0) +.TP +.B urle.query +The query part of the effective (last) URL that was fetched. (Added in 8.1.0) +.TP +.B urle.fragment +The fragment part of the effective (last) URL that was fetched. (Added in 8.1.0) +.TP +.B urle.zoneid +The zoneid part of the effective (last) URL that was fetched. (Added in 8.1.0) +.TP .B urlnum The URL index number of this transfer, 0-indexed. De-globbed URLs share the same index number as the origin globbed URL. (Added in 7.75.0) -- cgit v1.2.1