path load data from local disk.
resource to upload to
connection to use e.g. FTP or HTTP. The default AutoProtocol will guess connection type and create a new instance for this call only.
import std.net.curl; upload("/tmp/downloaded-ftp-file", "ftp.digitalmars.com/sieve.ds"); upload("/tmp/downloaded-http-file", "https://httpbin.org/post");
Upload file from local files system using the HTTP or FTP protocol.