diff options
author | Andre Klärner <kandre@ak-online.be> | 2024-11-29 10:34:16 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2024-12-02 20:48:24 +0100 |
commit | e7dbfd42231754b0258f2f92088caba7de3ee9d8 (patch) | |
tree | 1732cc2c6aac9540d6ee4435ffaa9b8ed9443055 /ABOUT-NLS | |
parent | afb1734ec488b72e17b3fe8d14d9a0473e1449a4 (diff) | |
download | monitoring-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 'ABOUT-NLS')
0 files changed, 0 insertions, 0 deletions