-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
344 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
#include "error.h" | ||
|
||
/** | ||
* @brief Download a file from the specified URL to a local file. | ||
* | ||
* This function downloads a file from a given URL and saves it to a specified local file. | ||
* It handles both HTTP and HTTPS protocols based on the URL scheme and uses secure connections | ||
* when required. | ||
* | ||
* @param[in] url The URL of the file to download. The URL should be a valid HTTP or HTTPS URL. | ||
* @param[in] filename The path to the local file where the downloaded content will be saved. | ||
* | ||
* @return NO_ERROR if the download was successful, or an appropriate error code otherwise. | ||
*/ | ||
error_t web_download(const char *url, const char *filename); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.