un-nest curl
This commit is contained in:
28
curl-8.15.0/docs/cmdline-opts/get.md
Normal file
28
curl-8.15.0/docs/cmdline-opts/get.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
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
|
||||
Protocols: HTTP
|
||||
Category: http
|
||||
Added: 7.8.1
|
||||
Multi: boolean
|
||||
See-also:
|
||||
- data
|
||||
- request
|
||||
Example:
|
||||
- --get $URL
|
||||
- --get -d "tool=curl" -d "age=old" $URL
|
||||
- --get -I -d "tool=curl" $URL
|
||||
---
|
||||
|
||||
# `--get`
|
||||
|
||||
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. curl appends the provided data to the URL as a
|
||||
query string.
|
||||
|
||||
If used in combination with --head, the POST data is instead appended to the
|
||||
URL with a HEAD request.
|
||||
Reference in New Issue
Block a user