From ddfe821bcf9522247cd057b12b8a1b0af01f2d37 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 4 Mar 2012 23:07:03 +0000 Subject: 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 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/curl.1 b/docs/curl.1 index 486ef4b15..02cfb44f4 100644 --- a/docs/curl.1 +++ b/docs/curl.1 @@ -1485,6 +1485,11 @@ The variables available at this point are: The URL that was fetched last. This is most meaningful if you've told curl to follow location: headers. .TP +.B filename_effective +The ultimate filename that curl writes out to. This is only meaningful if curl +is told to write to a file with the --remote-name or --output option. It's most +useful in combination with the --remote-header-name option. (Added in 7.25.1) +.TP .B http_code The numerical response code that was found in the last retrieved HTTP(S) or FTP(s) transfer. In 7.18.2 the alias \fBresponse_code\fP was added to show the -- cgit v1.2.3