Summary
Downloads the specified resource over HTTP to a temporary file with specified settings.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Download")]
public static FilePath DownloadFile(this ICakeContext context, string address, DownloadFileSettings settings)
Examples
var resource = DownloadFile("http://www.example.org/index.html", new DownloadFileSettings()
{
Username = "bob",
Password = "builder"
});
Attributes
Parameters
Return Value
Type |
Description |
FilePath |
The path to the downloaded file. |