request-target.md (719B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: request-target 5 Arg: <path> 6 Help: Specify the target for this request 7 Protocols: HTTP 8 Added: 7.55.0 9 Category: http 10 Multi: single 11 See-also: 12 - request 13 Example: 14 - --request-target "*" -X OPTIONS $URL 15 --- 16 17 # `--request-target` 18 19 Use an alternative target (path) instead of using the path as provided in the 20 URL. Particularly useful when wanting to issue HTTP requests without leading 21 slash or other data that does not follow the regular URL pattern, like 22 "OPTIONS *". 23 24 curl passes on the verbatim string you give it in the request without any 25 filter or other safe guards. That includes white space and control characters.