zos_http_request_t Struct Reference

HTTP request context. More...

Data Fields

const char * url
 The HTTP request URL, if no schema is included http:// is used.
 
zos_tls_certificates_t certs
 For HTTPS (secure) request, the TLS cert filenames, zos_tls_certificates_t.
 
const char * content_type
 The 'content-type' header. More...
 
int32_t content_length
 Specifies the content length that will be sent. More...
 
zos_interface_t interface
 Network interface, zos_interface_t.
 
zos_http_method_t method
 HTTP request method, zos_http_method_t. More...
 

Detailed Description

HTTP request context.

Examples:
basic/http_methods/http_get.c, and nxp/nfc3d/cloud_rest.c.

Field Documentation

int32_t zos_http_request_t::content_length

Specifies the content length that will be sent.

If greater/equal to zero then specifies the 'content-length' header If equal -1, then specifies 'transfer-encoding: chunked' and writes are chunked encoded

Note
this only used for a POST request.
const char* zos_http_request_t::content_type

The 'content-type' header.

Note
this only used for a POST request.
zos_http_method_t zos_http_request_t::method

HTTP request method, zos_http_method_t.

Note
This is only used for zn_http_open_request()