xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 1 | c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 2 | SPDX-License-Identifier: curl |
| 3 | Short: : |
| 4 | Long: next |
| 5 | Tags: |
| 6 | Protocols: |
| 7 | Added: 7.36.0 |
| 8 | Magic: divider |
| 9 | Help: Make next URL use its separate set of options |
| 10 | Category: curl |
| 11 | Example: $URL --next -d postthis www2.example.com |
| 12 | Example: -I $URL --next https://example.net/ |
| 13 | See-also: parallel config |
| 14 | Multi: append |
| 15 | --- |
| 16 | Tells curl to use a separate operation for the following URL and associated |
| 17 | options. This allows you to send several URL requests, each with their own |
| 18 | specific options, for example, such as different user names or custom requests |
| 19 | for each. |
| 20 | |
| 21 | --next will reset all local options and only global ones will have their |
| 22 | values survive over to the operation following the --next instruction. Global |
| 23 | options include --verbose, --trace, --trace-ascii and --fail-early. |
| 24 | |
| 25 | For example, you can do both a GET and a POST in a single command line: |
| 26 | |
| 27 | curl www1.example.com --next -d postthis www2.example.com |