zos_http_download_t Struct Reference

HTTP download context used by zn_http_download. More...

Data Fields

const char * url
 The HTTP request URL, if no schema is included http:// is used.
 
uint32_t checksum
 Expected CRC16 checksum of file, optional, set as UINT32_MAX if unused.
 
uint32_t version
 File version to save file as, FILE_MAKE_VERSION, optional, set as 0 for default.
 
const char * local_filename
 File name to save file as.
 
zos_tls_certificates_t certs
 For HTTPS (secure) request, the TLS cert filenames, zos_tls_certificates_t.
 
zos_file_flag_t flags
 File flags to save file as, zos_file_flag_t, optional, set as 0 for default.
 
zos_file_type_t type
 File type to save file as, zos_file_type_t, optional, set as 0 for default.
 
zos_interface_t interface
 Network interface, zos_interface_t.
 
zos_bool_t delete_duplicate
 If a file with name local_filename already exists then delete it first, fail otherwise.
 

Detailed Description

HTTP download context used by zn_http_download.