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