• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 upload
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
23or --data-urlencode to be used in an HTTP GET request instead of the POST
24request that otherwise would be used. The data is appended to the URL
25with a '?' separator.
26
27If used in combination with --head, the POST data is instead appended to the
28URL with a HEAD request.
29