xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | c: Copyright (C) 1998 - 2022, 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 *". |