gos_http_upload_t Struct Reference

HTTP upload context used by gos_http_upload() More...

Data Fields

const char * url
The HTTP request URL, if no schema is included http:// is used.
const char * local_filename
Name of file on local file system.
const char * remote_filename
Name to save file as on server, optional, leave NULL to use local_filename.
const char * content_type
The HTTP 'content-type' to upload file as, optional, leave NULL for default.
const char * form_name
The HTTP 'form-data' name, optional, leave NULL for default.
const bool decrypt
gos_tls_certificates_t certs
For HTTPS (secure) request, the TLS cert filenames, gos_tls_certificates_t .
gos_interface_t interface
Network interface, gos_interface_t .

Detailed Description

HTTP upload context used by gos_http_upload()

Field Documentation

decrypt

const bool gos_http_upload_t::decrypt

If true AND the file has the GOS_FILE_FLAG_ENCRYPTED flag set THEN decrypt the file as it is uploaded to the server. If false AND the file has the GOS_FILE_FLAG_ENCRYPTED flag set THEN upload encrypted file to server.