mirror of
https://github.com/curl/curl.git
synced 2024-12-03 06:20:31 +08:00
68784d73c3
The file format for each option now features a "Example:" header that can provide one or more examples that get rendered appropriately in the output. All options MUST have at least one example or gen.pl complains at build-time. This fix also does a few other minor format and consistency cleanups. Closes #7654
26 lines
833 B
Makefile
26 lines
833 B
Makefile
Short: :
|
|
Long: next
|
|
Tags:
|
|
Protocols:
|
|
Added: 7.36.0
|
|
Magic: divider
|
|
Help: Make next URL use its separate set of options
|
|
Category: curl
|
|
Example: $URL --next -d postthis www2.example.com
|
|
Example: -I $URL --next https://example.net/
|
|
---
|
|
Tells curl to use a separate operation for the following URL and associated
|
|
options. This allows you to send several URL requests, each with their own
|
|
specific options, for example, such as different user names or custom requests
|
|
for each.
|
|
|
|
--next will reset all local options and only global ones will have their
|
|
values survive over to the operation following the --next instruction. Global
|
|
options include --verbose, --trace, --trace-ascii and --fail-early.
|
|
|
|
For example, you can do both a GET and a POST in a single command line:
|
|
|
|
.nf
|
|
curl www1.example.com --next -d postthis www2.example.com
|
|
.fi
|