master-server/deps/curl/docs/cmdline-opts/get.md

29 lines
716 B
Markdown
Raw Normal View History

2024-05-15 15:20:32 -04:00
---
2023-12-11 20:30:44 -05:00
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
SPDX-License-Identifier: curl
Long: get
Short: G
Help: Put the post data in the URL and use GET
2024-05-15 15:20:32 -04:00
Protocols: HTTP
2023-12-11 20:30:44 -05:00
Category: http upload
Added: 7.8.1
Multi: boolean
2024-05-15 15:20:32 -04:00
See-also:
- data
- request
Example:
- --get $URL
- --get -d "tool=curl" -d "age=old" $URL
- --get -I -d "tool=curl" $URL
2023-12-11 20:30:44 -05:00
---
2024-05-15 15:20:32 -04:00
# `--get`
2023-12-11 20:30:44 -05:00
When used, this option makes 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 is appended to the URL
with a '?' separator.
If used in combination with --head, the POST data is instead appended to the
URL with a HEAD request.