[ Version ( since = "1.5.2" ) ]
public bool download_file (string url, File file, ClientDownloadFlags flags, Cancellable? cancellable = null) throws Error
Downloads data from a remote server.
The [method@Client.set_user_agent] function should be called before this method is used.
| this |
a Client |
| url |
the remote URL |
| file |
a file |
| flags |
download flags, e.g. fwupd_client_download_flag_none |
| cancellable |
optional Cancellable |
|
true if the file was written |