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