The mime-type of the download. This variable is only available when der server
sent the mime-type header with the response and only if the download was not
start by the `:save' command or the `;s' hinting.
+.TP
+.B $VIMB_USE_PROXY
+Indicates if the proxy is enabled in vimb. If enable this variable is `1',
+otherwise `0'. Note that this variable gives no hint if the proxy settings
+apply to the URL to be downloaded, only if proxy is enabled in general.
.PD
.P
Example: :set download-command=/bin/sh -c "wget -c %s -O $VIMB_FILE
/* set the required download information as environment */
envp = g_get_environ();
envp = g_environ_setenv(envp, "VIMB_FILE", file, true);
+ envp = g_environ_setenv(envp, "VIMB_USE_PROXY", GET_BOOL("proxy") ? "1" : "0", true);
#ifdef FEATURE_COOKIE
envp = g_environ_setenv(envp, "VIMB_COOKIES", vb.files[FILES_COOKIE], true);
#endif