diff options
Diffstat (limited to 'src/check_curl.c')
-rw-r--r-- | src/check_curl.c | 4 |
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 ); |