diff options
author | Daniel Stenberg <daniel@haxx.se> | 2023-04-04 14:42:44 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2023-04-04 14:42:44 +0200 |
commit | 808cb3175684074f281e398fd071a55bfcd9a004 (patch) | |
tree | 5e32371c6b6d0614cbe694fce9702e98681a4306 /docs | |
parent | e0c3424fb11f1aa63c9029b17dd6c8b7e12e7e0b (diff) | |
download | curl-808cb3175684074f281e398fd071a55bfcd9a004.tar.gz |
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/cmdline-opts/write-out.d | 64 |
1 files changed, 64 insertions, 0 deletions
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) |