Home | History | Annotate | Download | only in cmdline-opts
      1 Short: :
      2 Long: next
      3 Tags:
      4 Protocols:
      5 Added: 7.36.0
      6 Magic: divider
      7 Help: Make next URL use its separate set of options
      8 ---
      9 Tells curl to use a separate operation for the following URL and associated
     10 options. This allows you to send several URL requests, each with their own
     11 specific options, for example, such as different user names or custom requests
     12 for each.
     13 
     14 --next will reset all local options and only global ones will have their
     15 values survive over to the operation following the --next instruction. Global
     16 options include --verbose, --trace, --trace-ascii and --fail-early.
     17 
     18 For example, you can do both a GET and a POST in a single command line:
     19 
     20  curl www1.example.com --next -d postthis www2.example.com
     21