2023-01-02 20:51:48 +08:00
|
|
|
c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
|
2022-06-14 06:12:03 +08:00
|
|
|
SPDX-License-Identifier: curl
|
2016-11-14 06:40:12 +08:00
|
|
|
Short: :
|
|
|
|
Long: next
|
|
|
|
Tags:
|
|
|
|
Protocols:
|
|
|
|
Added: 7.36.0
|
|
|
|
Magic: divider
|
2016-11-15 16:08:50 +08:00
|
|
|
Help: Make next URL use its separate set of options
|
2020-07-13 20:15:04 +08:00
|
|
|
Category: curl
|
2021-08-31 22:37:14 +08:00
|
|
|
Example: $URL --next -d postthis www2.example.com
|
|
|
|
Example: -I $URL --next https://example.net/
|
2021-11-15 22:58:20 +08:00
|
|
|
See-also: parallel config
|
2022-10-18 16:39:43 +08:00
|
|
|
Multi: append
|
2016-11-14 06:40:12 +08:00
|
|
|
---
|
|
|
|
Tells curl to use a separate operation for the following URL and associated
|
|
|
|
options. This allows you to send several URL requests, each with their own
|
|
|
|
specific options, for example, such as different user names or custom requests
|
|
|
|
for each.
|
|
|
|
|
2023-09-08 20:32:29 +08:00
|
|
|
--next resets all local options and only global ones have their values survive
|
|
|
|
over to the operation following the --next instruction. Global options include
|
|
|
|
--verbose, --trace, --trace-ascii and --fail-early.
|
2016-11-14 06:40:12 +08:00
|
|
|
|
|
|
|
For example, you can do both a GET and a POST in a single command line:
|
|
|
|
|
|
|
|
curl www1.example.com --next -d postthis www2.example.com
|