blob: 1d1e70a35c9b90f65047ba1f7af3d11e41f6af55 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001Short: :
2Long: next
3Tags:
4Protocols:
5Added: 7.36.0
6Magic: divider
7Help: Make next URL use its separate set of options
8---
9Tells curl to use a separate operation for the following URL and associated
10options. This allows you to send several URL requests, each with their own
11specific options, for example, such as different user names or custom requests
12for each.
13
14--next will reset all local options and only global ones will have their
15values survive over to the operation following the --next instruction. Global
16options include --verbose, --trace, --trace-ascii and --fail-early.
17
18For example, you can do both a GET and a POST in a single command line:
19
20 curl www1.example.com --next -d postthis www2.example.com