mirror of
https://github.com/curl/curl.git
synced 2026-04-16 17:51:40 +03:00
tool_operate: Added support for performing URL specific operations
This commit is contained in:
parent
c5f8e2f5f4
commit
8cf63f88c2
1 changed files with 10 additions and 3 deletions
|
|
@ -1844,9 +1844,16 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
|
|||
list_engines(engines);
|
||||
curl_slist_free_all(engines);
|
||||
}
|
||||
/* Perform the main operation */
|
||||
else
|
||||
result = operate_do(config);
|
||||
/* Perform the main operations */
|
||||
else {
|
||||
struct Configurable *operation = config;
|
||||
|
||||
while(!result && operation) {
|
||||
result = operate_do(operation);
|
||||
|
||||
operation = operation->next;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Perform the cleanup */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue