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