curl/docs/cmdline-opts/url-query.md
Daniel Stenberg e7219c2bdc
cmdline-opts: language cleanups
Use imperative mood consistently for the first sentence describing an
option.

"Set this" instead "tell curl to set" or "this sets..."

Plus some extra cleanups and rephrasing.

Closes #13106
2024-03-12 15:42:33 +01:00

804 B

c SPDX-License-Identifier Long Arg Help Protocols Added Category Multi See-also Example
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. curl url-query <data> Add a URL query part all 7.87.0 http post upload append
data-urlencode
get
--url-query name=val $URL
--url-query =encodethis http://example.net/foo
--url-query name@file $URL
--url-query @fileonly $URL
--url-query "+name=%20foo" $URL

--url-query

Add 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.

The query part of a URL is the one following the question mark on the right end.