request-target.d 545 B

123456789101112131415
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: request-target
  4. Arg: <path>
  5. Help: Specify the target for this request
  6. Protocols: HTTP
  7. Added: 7.55.0
  8. Category: http
  9. Example: --request-target "*" -X OPTIONS $URL
  10. See-also: request
  11. ---
  12. Tells curl to use an alternative "target" (path) instead of using the path as
  13. provided in the URL. Particularly useful when wanting to issue HTTP requests
  14. without leading slash or other data that does not follow the regular URL
  15. pattern, like "OPTIONS *".