]> git.ipfire.org Git - thirdparty/curl.git/commit - src/tool_cfgable.c
curl: add --url-query
authorDaniel Stenberg <daniel@haxx.se>
Fri, 4 Nov 2022 23:10:24 +0000 (00:10 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 8 Nov 2022 13:37:34 +0000 (14:37 +0100)
commitb6e1afd069f0a621b21bf27a461dc5297ce30031
tree0c236a83c352d0506b640ed71313d3b66054ad4a
parent43232b59920558f4003accbb31cff5d9a9269497
curl: add --url-query

This option adds a piece of data, usually a name + value pair, to the
end of the URL query part. The syntax is identical to that used for
--data-urlencode with one extension:

If the argument starts with a '+' (plus), the rest of the string is
provided as-is unencoded.

This allows users to "build" query parts with options and URL encoding
even when not doing GET requests, which the already provided option -G
(--get) is limited to.

This idea was born in a Twitter thread.

Closes #9691
docs/cmdline-opts/Makefile.inc
docs/cmdline-opts/url-query.d [new file with mode: 0644]
docs/options-in-versions
src/tool_cfgable.c
src/tool_cfgable.h
src/tool_getparam.c
src/tool_listhelp.c
src/tool_operate.c