summaryrefslogtreecommitdiffstats
path: root/perlmods
diff options
context:
space:
mode:
authorAndre Klärner <kandre@ak-online.be>2024-11-29 10:34:16 +0100
committerSven Nierlein <sven@nierlein.org>2024-12-02 20:48:24 +0100
commite7dbfd42231754b0258f2f92088caba7de3ee9d8 (patch)
tree1732cc2c6aac9540d6ee4435ffaa9b8ed9443055 /perlmods
parentafb1734ec488b72e17b3fe8d14d9a0473e1449a4 (diff)
downloadmonitoring-plugins-e7dbfd42231754b0258f2f92088caba7de3ee9d8.tar.gz
check_curl: enable internal cookie handling
This enables us to enable curl cookie engine by specifying an empty filename as the cookie jar file. This works, since curl's CURLOPT_COOKIEFILE option allows passing an empty string as filename, which it interprets as a request to enable the cookie processing. But since CURLOPT_COOKIEJAR would now attempt to write to a file named by an empty filename, it would break again (or at least produce a warning in verbose output). Overall this is allows to handle checking URLs with cookie based sessions without persisting the cookies to disk, by using the curl-internal redirect following.
Diffstat (limited to 'perlmods')
0 files changed, 0 insertions, 0 deletions