summaryrefslogtreecommitdiffstats
path: root/plugins/check_curl.d
AgeCommit message (Collapse)AuthorFilesLines
2 daysFix/check curl sticky redir (#2188)Lorenz Kästle2-1/+17
* check_curl: avoid freeing memory when we don't know where it came from * check_curl: when using -f sticky conserve IPv6 addresses properly When running the check on an ipv6 address with a sticky onredirect policy like in this example: check_curl -6 -H example.com -I ::1 -f sticky It results in a getaddrinfo error: HTTP CRITICAL - Unable to lookup IP address for '[::1]': getaddrinfo returned -3 - Temporary failure in name resolution This happens because in check_http() if the content of server_addr is an ipv6 address enclosing brackets are added and on redirection a subsequent call to check_http() will pass this now bracketed value to getaddrinfo resulting in the error. To work around this, strip the brackets from the address prior to the lookup_host() call. * add Michael Jeanson to thanks
2025-10-30add some comments to explain changed codeLorenz Kästle1-0/+2
2025-10-30check_curl: accept non standard compliant status lineLorenz Kästle1-2/+16
If the status line from a server ended with '\n' instead of '\r\n' (defined by RFC 9112), check_curl failed to parse it and exited with an alarm. The RFC recommends to be lenient here and this change follows that suggestion.
2025-09-15Add output formatting optionLorenz Kästle2-0/+5
2025-09-15check_curl: use new cert check functionLorenz Kästle1-3/+5
2025-09-13check_curl: remove display-html optionLorenz Kästle2-2/+0
2025-09-12check_curl: implement new output mechanismLorenz Kästle3-116/+163
2025-09-12check_curl: fix default redirect settingLorenz Kästle1-1/+1
2025-09-12Fix struct accessLorenz Kästle1-1/+1
2025-09-12check_curl: create outsourced helpers in extra filesLorenz Kästle3-74/+1344
2025-09-11check_curl: refactoring to modularize codeLorenz Kästle1-33/+45
2025-09-11check_curl: improve option handling a bitLorenz Kästle1-4/+9
2025-09-10check_curl: set http port to 80 by defaultLorenz Kästle1-1/+1
2025-09-10check_curl: pre compile regex for string matchingLorenz Kästle1-0/+8
2025-09-09check_curl: more refactoringLorenz Kästle1-16/+32
2025-09-09Fix some include pathsLorenz Kästle1-3/+3
2025-08-01Quick saveLorenz Kästle1-0/+3
2025-07-14check_curl: various small improvementsLorenz Kästle1-6/+6
2025-03-11Refactor check_curlLorenz Kästle1-0/+141