xref: /curl/docs/cmdline-opts/next.md (revision e7219c2b)
1---
2c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3SPDX-License-Identifier: curl
4Short: :
5Long: next
6Tags:
7Protocols:
8Added: 7.36.0
9Magic: divider
10Help: Make next URL use its separate set of options
11Category: curl
12Multi: append
13See-also:
14  - parallel
15  - config
16Example:
17  - $URL --next -d postthis www2.example.com
18  - -I $URL --next https://example.net/
19---
20
21# `--next`
22
23Use a separate operation for the following URL and associated options. This
24allows you to send several URL requests, each with their own specific options,
25for 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
28over to the operation following the --next instruction. Global options include
29--verbose, --trace, --trace-ascii and --fail-early.
30
31For 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
34