utils/curl.h file

Curl utilities.

Contents

Functions

auto z_curl_get_page_contents(const char* url, int timeout) -> char*
Returns the contents of the page in a newly allocated string.
auto z_curl_get_page_contents_default(const char* url) -> char*
Returns the contents of the page in a newly allocated string.
auto z_curl_post_json_no_auth(const char* url, const char* data, int timeout, GError** error, ...) G_GNUC_NULL_TERMINATED -> int
Posts the given JSON to the URL without any authentication.