#ifndef ZABBIX_CURL_H
#define ZABBIX_CURL_H
#include "zbxcommon.h"
#ifdef HAVE_LIBCURL
#define ZBX_CURLOPT_MAXREDIRS 10L
#if LIBCURL_VERSION_NUM < 0x071400
# define CURLOPT_MAIL_FROM 186L
# define CURLOPT_MAIL_RCPT 187L
#endif
#if LIBCURL_VERSION_NUM < 0x071501
# define CURLOPT_ACCEPT_ENCODING CURLOPT_ENCODING
#endif
CURLMcode zbx_curl_multi_wait(CURLM *multi_handle, int timeout_ms, int *numfds);
#if LIBCURL_VERSION_NUM < 0x072100
# define CURLOPT_XOAUTH2_BEARER 220L
#endif
#if LIBCURL_VERSION_NUM < 0x072600
# define CURLAUTH_NEGOTIATE (((unsigned long)1)<<2)
#endif
#if LIBCURL_VERSION_NUM < 0x073700
# define CURLINFO_SPEED_DOWNLOAD_T CURLINFO_SPEED_DOWNLOAD
# define curl_off_t double
#endif
#if LIBCURL_VERSION_NUM < 0x073d00
# define CURLAUTH_BEARER (((unsigned long)1)<<6)
#endif
const char *zbx_curl_content_type(CURL *easyhandle);
int zbx_curl_protocol(const char *protocol, char **error);
int zbx_curl_setopt_https(CURL *easyhandle, char **error);
int zbx_curl_setopt_smtps(CURL *easyhandle, char **error);
int zbx_curl_setopt_ssl_version(CURL *easyhandle, char **error);
int zbx_curl_has_ssl(char **error);
int zbx_curl_has_bearer(char **error);
int zbx_curl_has_smtp_auth(char **error);
int zbx_curl_good_for_elasticsearch(char **error);
#endif
#endif