|
NAMECURLINFO_HTTPAUTH_USED - get used HTTP authentication method SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_HTTPAUTH_USED, long *authp); DESCRIPTIONPass a pointer to a long to receive a bitmask indicating the authentication method that was used in the previous HTTP request. The meaning of the possible bits is explained in the CURLOPT_HTTPAUTH(3) option for curl_easy_setopt(3). The returned value has zero or one bit set. PROTOCOLSThis functionality affects http only EXAMPLEint main(void)
{
AVAILABILITYAdded in curl 8.12.0 RETURN VALUEcurl_easy_getinfo(3) returns a CURLcode indicating success or error. CURLE_OK (0) means everything was OK, non-zero means an error occurred, see libcurl-errors(3). SEE ALSOCURLINFO_HTTPAUTH_AVAIL(3), CURLINFO_PROXYAUTH_USED(3), CURLOPT_HTTPAUTH(3)
|