This module should behave RFC 3986, RFC 7230, RFC 7231 and RFC 7234 conformant. More...
Macros | |
#define | MAIN_ERR_PREFIX "HTTP: " |
Message prefix for HTTP module. | |
#define | HTTP_PERM (posix_mode_t) (POSIX_S_IRUSR | POSIX_S_IWUSR) |
Permissions for downloaded files that are created by this module. | |
#define | HTTP_LINE_MAX (size_t) 8192 |
At least 8000 octets recommended by RFC 7230. | |
Functions | |
int | http_download_file (const char *uri, const char *lpn) |
Download file from WWW via HTTP. More... | |
This module should behave RFC 3986, RFC 7230, RFC 7231 and RFC 7234 conformant.
This module implements a minimalistic WWW client to download X.509 CRLs via HTTP/1.1 protocol (for certificate revocation checks of the TLS module).
int http_download_file | ( | const char * | uri, |
const char * | lpn | ||
) |
Download file from WWW via HTTP.
[in] | uri | URI of file on WWW server to download |
[in] | lpn | Local pathname where the file should be stored |
Definition at line 880 of file http.c.
Referenced by ext_download_file().