diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-03-04 23:07:03 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-04-01 23:52:05 +0200 |
commit | ddfe821bcf9522247cd057b12b8a1b0af01f2d37 (patch) | |
tree | bd91e6acfeced5bcf9306bb11cedb630df4d819e /src/tool_operate.c | |
parent | 54866b68cd71070a62f517ec6722dc60384b4b5f (diff) | |
download | curl-ddfe821bcf9522247cd057b12b8a1b0af01f2d37.tar.gz |
curl tool: add filename_effective token for --write-out
By modifying the parameter list for ourWriteOut() and passing the
OutStruct that collects data in tool_operate, we get access to the
remote name that we're writing to. Shell scripters should find this
useful when used in conjuntion with the --remote-header-name option.
Diffstat (limited to 'src/tool_operate.c')
-rw-r--r-- | src/tool_operate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c index d070ea64a..04d1589d7 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -1391,7 +1391,7 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[]) fputs("\n", progressbar.out); if(config->writeout) - ourWriteOut(curl, config->writeout); + ourWriteOut(curl, &outs, config->writeout); if(config->writeenv) ourWriteEnv(curl); |