next.md (946B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Short: : 5 Long: next 6 Tags: 7 Protocols: 8 Added: 7.36.0 9 Magic: divider 10 Help: Make next URL use separate options 11 Category: curl 12 Multi: append 13 See-also: 14 - parallel 15 - config 16 Example: 17 - $URL --next -d postthis www2.example.com 18 - -I $URL --next https://example.net/ 19 --- 20 21 # `--next` 22 23 Use a separate operation for the following URL and associated options. This 24 allows you to send several URL requests, each with their own specific options, 25 for example, such as different usernames or custom requests for each. 26 27 --next resets all local options and only global ones have their values survive 28 over to the operation following the --next instruction. Global options include 29 --verbose, --trace, --trace-ascii and --fail-early. 30 31 For example, you can do both a GET and a POST in a single command line: 32 33 curl www1.example.com --next -d postthis www2.example.com