![]() |
![]()
| ![]() |
![]()
NAMECURLINFO_HTTPAUTH_AVAIL - get available HTTP authentication methods SYNOPSIS#include <curl/curl.h> CURLcode curl_easy_getinfo(CURL *handle, CURLINFO_HTTPAUTH_AVAIL, long *authp); DESCRIPTIONPass a pointer to a long to receive a bitmask indicating the authentication method(s) available according to the previous response. The meaning of the bits is explained in the CURLOPT_HTTPAUTH(3) option for curl_easy_setopt(3). PROTOCOLSThis functionality affects http only EXAMPLEint main(void) { AVAILABILITYAdded in curl 7.10.8 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_PROXYAUTH_AVAIL(3), CURLOPT_HTTPAUTH(3), curl_easy_getinfo(3), curl_easy_setopt(3)
|