-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
tool_writeout: add URL component variables #10853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
a79ff1d
to
43e2f54
Compare
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
ad247e2
to
4fd4228
Compare
.TP | ||
.B urle.zoneid | ||
The zoneid part of the effective (last) URL that was fetched. (Added in 8.1.0) | ||
.TP |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could all be combined in .B url
and .B url_effective
(imo makes more sense than urle) to say something like
.B url
The URL that was fetched. (Added in 7.75.0)
Individual parts of the URL can written using format `url.<part>`. The
part names are: are fragment, host, options, password, path, port,
query, scheme, user, and zoneid. (Added in 8.1.0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It could be written like that but would make them much harder to find and they can't be searchable in their full names. I prefer listing all names the same way.
I went with "urle" instead of "url_effective" simply because the names becomes unwieldy long otherwise. Like url_effective.fragment
.
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 curl#10853
Output specific components from the used URL. The following
-w
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
and for getting the components out 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.