get.md (716B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: get 5 Short: G 6 Help: Put the post data in the URL and use GET 7 Protocols: HTTP 8 Category: http 9 Added: 7.8.1 10 Multi: boolean 11 See-also: 12 - data 13 - request 14 Example: 15 - --get $URL 16 - --get -d "tool=curl" -d "age=old" $URL 17 - --get -I -d "tool=curl" $URL 18 --- 19 20 # `--get` 21 22 When used, this option makes all data specified with --data, --data-binary or 23 --data-urlencode to be used in an HTTP GET request instead of the POST request 24 that otherwise would be used. curl appends the provided data to the URL as a 25 query string. 26 27 If used in combination with --head, the POST data is instead appended to the 28 URL with a HEAD request.