summaryrefslogtreecommitdiff
path: root/src/check_curl.c
diff options
context:
space:
mode:
authorNick Gregory <github@openenterprise.co.uk>2013-12-23 11:51:01 +0000
committerNick Gregory <github@openenterprise.co.uk>2013-12-23 11:51:01 +0000
commitb6654c8d5114ed5eb3d4532d50502bd40814969e (patch)
treeafdfa59fa07c58b0328dfe3b267cc770dfe8c663 /src/check_curl.c
parentb10ea317c698067307ace666c6618aee1d852888 (diff)
downloadnagios-plugin-curl-b6654c8d5114ed5eb3d4532d50502bd40814969e.tar.gz
nagios-plugin-curl-b6654c8d5114ed5eb3d4532d50502bd40814969e.tar.bz2
add digest support
Diffstat (limited to 'src/check_curl.c')
-rw-r--r--src/check_curl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/check_curl.c b/src/check_curl.c
index 7222b01..620c089 100644
--- a/src/check_curl.c
+++ b/src/check_curl.c
@@ -124,6 +124,10 @@ int main( int argc, char *argv[] ) {
if( args_info.authorization_given )
curl_easy_setopt( curl, CURLOPT_USERPWD, args_info.authorization_arg );
+ /* -d: digest */
+ if( args_info.digest_given )
+ curl_easy_setopt( curl, CURLOPT_HTTPAUTH, (long)CURLAUTH_DIGEST );
+
/* user agent */
if( args_info.useragent_given )
curl_easy_setopt( curl, CURLOPT_USERAGENT, args_info.useragent_arg );