2017-06-22 05:35:08 +08:00
|
|
|
Long: request-target
|
2021-07-13 11:09:26 +08:00
|
|
|
Arg: <path>
|
2017-06-22 05:35:08 +08:00
|
|
|
Help: Specify the target for this request
|
|
|
|
Protocols: HTTP
|
2017-08-22 20:48:33 +08:00
|
|
|
Added: 7.55.0
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: http
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: --request-target "*" -X OPTIONS $URL
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: request
|
2017-06-22 05:35:08 +08:00
|
|
|
---
|
|
|
|
Tells curl to use an alternative "target" (path) instead of using the path as
|
|
|
|
provided in the URL. Particularly useful when wanting to issue HTTP requests
|
2021-10-31 23:34:44 +08:00
|
|
|
without leading slash or other data that does not follow the regular URL
|
2017-06-22 05:35:08 +08:00
|
|
|
pattern, like "OPTIONS *".
|