2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-16 06:44:58 +08:00
|
|
|
Long: get
|
|
|
|
Short: G
|
|
|
|
Help: Put the post data in the URL and use GET
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: http upload
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --get $URL
|
2021-09-03 16:14:06 +08:00
|
|
|
Example: --get -d "tool=curl" -d "age=old" $URL
|
|
|
|
Example: --get -I -d "tool=curl" $URL
|
2021-09-28 17:50:07 +08:00
|
|
|
Added: 7.8.1
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: data request
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: boolean
|
2016-11-16 06:44:58 +08:00
|
|
|
---
|
|
|
|
When used, this option will make all data specified with --data, --data-binary
|
|
|
|
or --data-urlencode to be used in an HTTP GET request instead of the POST
|
|
|
|
request that otherwise would be used. The data will be appended to the URL
|
|
|
|
with a '?' separator.
|
|
|
|
|
|
|
|
If used in combination with --head, the POST data will instead be appended to
|
|
|
|
the URL with a HEAD request.
|