Submit CSR to server
This commit is contained in:
@ -11,10 +11,19 @@ extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
enum method
|
||||
{
|
||||
MethodGET = 0,
|
||||
MethodPOST
|
||||
};
|
||||
|
||||
typedef struct
|
||||
{
|
||||
const char *url;
|
||||
char *root_ca;
|
||||
const char *body;
|
||||
const char *content_type;
|
||||
enum method method;
|
||||
} http_request_opts;
|
||||
|
||||
/**
|
||||
@ -25,6 +34,13 @@ extern "C"
|
||||
*/
|
||||
char *http_client_exec(const http_request_opts *opts);
|
||||
|
||||
/**
|
||||
* Escape URI string
|
||||
*
|
||||
* See protocol_example_utils.c of esp32-idf
|
||||
*/
|
||||
size_t http_client_escape_uri(unsigned char *dst, const unsigned char *src, size_t size);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user