xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Long: get |
| 4 | Short: G |
| 5 | Help: Put the post data in the URL and use GET |
| 6 | Category: http upload |
| 7 | Example: --get $URL |
| 8 | Example: --get -d "tool=curl" -d "age=old" $URL |
| 9 | Example: --get -I -d "tool=curl" $URL |
| 10 | Added: 7.8.1 |
| 11 | See-also: data request |
| 12 | Multi: boolean |
| 13 | --- |
| 14 | When used, this option will make all data specified with --data, --data-binary |
| 15 | or --data-urlencode to be used in an HTTP GET request instead of the POST |
| 16 | request that otherwise would be used. The data will be appended to the URL |
| 17 | with a '?' separator. |
| 18 | |
| 19 | If used in combination with --head, the POST data will instead be appended to |
| 20 | the URL with a HEAD request. |