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
This commit is contained in:
Daniel Stenberg 2023-04-04 14:42:44 +02:00
parent e0c3424fb1
commit 808cb31756
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 337 additions and 3 deletions

View file

@ -44,6 +44,27 @@ typedef enum {
VAR_HTTP_CODE_PROXY,
VAR_HTTP_VERSION,
VAR_INPUT_URL,
VAR_INPUT_URLSCHEME,
VAR_INPUT_URLUSER,
VAR_INPUT_URLPASSWORD,
VAR_INPUT_URLOPTIONS,
VAR_INPUT_URLHOST,
VAR_INPUT_URLPORT,
VAR_INPUT_URLPATH,
VAR_INPUT_URLQUERY,
VAR_INPUT_URLFRAGMENT,
VAR_INPUT_URLZONEID,
/* the same ones again for url *effective* */
VAR_INPUT_URLESCHEME,
VAR_INPUT_URLEUSER,
VAR_INPUT_URLEPASSWORD,
VAR_INPUT_URLEOPTIONS,
VAR_INPUT_URLEHOST,
VAR_INPUT_URLEPORT,
VAR_INPUT_URLEPATH,
VAR_INPUT_URLEQUERY,
VAR_INPUT_URLEFRAGMENT,
VAR_INPUT_URLEZONEID,
VAR_JSON,
VAR_LOCAL_IP,
VAR_LOCAL_PORT,