]> granicus.if.org Git - curl/commit
curl tool: add filename_effective token for --write-out
authorDave Reisner <dreisner@archlinux.org>
Sun, 4 Mar 2012 23:07:03 +0000 (23:07 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 1 Apr 2012 21:52:05 +0000 (23:52 +0200)
commitddfe821bcf9522247cd057b12b8a1b0af01f2d37
treebd91e6acfeced5bcf9306bb11cedb630df4d819e
parent54866b68cd71070a62f517ec6722dc60384b4b5f
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.
docs/curl.1
src/tool_operate.c
src/tool_writeout.c
src/tool_writeout.h