iw7-mod/deps/curl/docs/cmdline-opts/url-query.md
2024-08-13 05:15:34 -04:00

817 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

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.

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