get.d 883 B

1234567891011121314151617181920212223
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: get
  4. Short: G
  5. Help: Put the post data in the URL and use GET
  6. Category: http upload
  7. Example: --get $URL
  8. Example: --get -d "tool=curl" -d "age=old" $URL
  9. Example: --get -I -d "tool=curl" $URL
  10. Added: 7.8.1
  11. See-also: data request
  12. ---
  13. When used, this option will make all data specified with --data, --data-binary
  14. or --data-urlencode to be used in an HTTP GET request instead of the POST
  15. request that otherwise would be used. The data will be appended to the URL
  16. with a '?' separator.
  17. If used in combination with --head, the POST data will instead be appended to
  18. the URL with a HEAD request.
  19. If this option is used several times, only the first one is used. This is
  20. because undoing a GET does not make sense, but you should then instead enforce
  21. the alternative method you prefer.