aboutsummaryrefslogtreecommitdiff
path: root/docs/curl.1
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-03-04 23:07:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2012-04-01 23:52:05 +0200
commitddfe821bcf9522247cd057b12b8a1b0af01f2d37 (patch)
treebd91e6acfeced5bcf9306bb11cedb630df4d819e /docs/curl.1
parent54866b68cd71070a62f517ec6722dc60384b4b5f (diff)
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 'docs/curl.1')
-rw-r--r--docs/curl.15
1 files changed, 5 insertions, 0 deletions
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