Summary
Downloads the specified resource over HTTP to a temporary file.
- Namespace
- Cake
.Common .Net - Containing Type
- HttpAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Download")]
public static FilePath DownloadFile(this ICakeContext context, string address)
Examples
var resource = DownloadFile("http://www.example.org/index.html");
Attributes
| Type | Description |
|---|---|
| Cake |
An attribute used to mark script method aliases. |
| Cake |
An attribute used for documentation of alias methods/properties. |
Parameters
| Name | Type | Description |
|---|---|---|
| context | ICakeContext | The context. |
| address | string | The URL of the resource to download. |
Return Value
| Type | Description |
|---|---|
| FilePath | The path to the downloaded file. |
