url-query.md (804B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: url-query 5 Arg: <data> 6 Help: Add a URL query part 7 Protocols: all 8 Added: 7.87.0 9 Category: http post upload 10 Multi: append 11 See-also: 12 - data-urlencode 13 - get 14 Example: 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 24 Add a piece of data, usually a name + value pair, to the end of the URL query 25 part. The syntax is identical to that used for --data-urlencode with one 26 extension: 27 28 If the argument starts with a '+' (plus), the rest of the string is provided 29 as-is unencoded. 30 31 The query part of a URL is the one following the question mark on the right 32 end.