summaryrefslogtreecommitdiff
path: root/src/tool_writeout.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-04-04 14:42:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2023-04-04 14:42:44 +0200
commit808cb3175684074f281e398fd071a55bfcd9a004 (patch)
tree5e32371c6b6d0614cbe694fce9702e98681a4306 /src/tool_writeout.h
parente0c3424fb11f1aa63c9029b17dd6c8b7e12e7e0b (diff)
downloadcurl-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 'src/tool_writeout.h')
-rw-r--r--src/tool_writeout.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tool_writeout.h b/src/tool_writeout.h
index fac7bdd19..25895bb44 100644
--- a/src/tool_writeout.h
+++ b/src/tool_writeout.h
@@ -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,