2016-11-13 17:40:12 -05:00
|
|
|
Short: :
|
|
|
|
Long: next
|
|
|
|
Tags:
|
|
|
|
Protocols:
|
|
|
|
Added: 7.36.0
|
|
|
|
Magic: divider
|
2016-11-15 03:08:50 -05:00
|
|
|
Help: Make next URL use its separate set of options
|
2016-11-13 17:40:12 -05:00
|
|
|
---
|
|
|
|
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
|
2017-01-13 09:34:01 -05:00
|
|
|
options include --verbose, --trace, --trace-ascii and --fail-early.
|
2016-11-13 17:40:12 -05:00
|
|
|
|
|
|
|
For example, you can do both a GET and a POST in a single command line:
|
|
|
|
|
|
|
|
curl www1.example.com --next -d postthis www2.example.com
|