monitoring-plugins/plugins/check_curl.d
Ahmet Oeztuerk d5a5a3de6f add proxy argument and improve dns cache usage
add proxy argument that useing the -x and --proxy argument. add it to
the static curl config struct, command usage and help outputs of the
cli.

parse these argument together with the environment variables like
http_proxy before setting the CURLOPT_PROXY in the curl configuration
option. this is required, as there is no easy way to ascertain/get what
the CURLOPT_PROXY that libcurl will use. by the point it is set by
libcurl, we have no control over it anymore, and need it for the other
steps in the configuration.

if the CURLOPT_PROXY is set, skip the DNS cache population which would
set the CURLOPT_RESOLVE. this is currently not perfect however. if a
proxy is set with socks4 or socks5 scheme, the host should be resolving
the hostname.
2026-02-10 13:15:35 +01:00
..
check_curl_helpers.c add proxy argument and improve dns cache usage 2026-02-10 13:15:35 +01:00
check_curl_helpers.h add proxy argument and improve dns cache usage 2026-02-10 13:15:35 +01:00
config.h add proxy argument and improve dns cache usage 2026-02-10 13:15:35 +01:00