This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Curl.
Summary
Uploads the specified file to a remote host using the specified URL.
Syntax
public static void CurlUploadFile(this ICakeContext context, FilePath filePath, Uri host, CurlSettings settings)
Examples
CurlUploadFile(
"file.txt",
new Uri("ftps://host/path"),
new CurlSettings
{
Username = "username",
Password = "password"
});
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The Cake context. |
filePath |
FilePath |
The path of the file to upload. |
host |
Uri |
The URL of the host to upload the file to. |
settings |
CurlSettings |
The settings. |
Return Value