request-target.d 546 B

12345678910111213141516
  1. c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, 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. Multi: single
  12. ---
  13. Tells curl to use an alternative "target" (path) instead of using the path as
  14. provided in the URL. Particularly useful when wanting to issue HTTP requests
  15. without leading slash or other data that does not follow the regular URL
  16. pattern, like "OPTIONS *".