xref: /curl/docs/cmdline-opts/url-query.md (revision e7219c2b)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Long: url-query
5Arg: <data>
6Help: Add a URL query part
7Protocols: all
8Added: 7.87.0
9Category: http post upload
10Multi: append
11See-also:
12  - data-urlencode
13  - get
14Example:
15  - --url-query name=val $URL
16  - --url-query =encodethis http://example.net/foo
17  - --url-query name@file $URL
18  - --url-query @fileonly $URL
19  - --url-query "+name=%20foo" $URL
20---
21
22# `--url-query`
23
24Add a piece of data, usually a name + value pair, to the end of the URL query
25part. The syntax is identical to that used for --data-urlencode with one
26extension:
27
28If the argument starts with a '+' (plus), the rest of the string is provided
29as-is unencoded.
30
31The query part of a URL is the one following the question mark on the right
32end.
33