How do I disable the CURLOPT_HTTPAUTH option in php?
问题 So this is what I have so far: self::$connection = curl_init(); curl_setopt(self::$connection, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt(self::$connection, CURLOPT_USERPWD, $username . ":" . $password); curl_setopt(self::$connection, CURLOPT_URL, $url); curl_exec(self::$connection); // Do a request that uses Basic Auth curl_setopt(self::$connection, CURLOPT_HTTPAUTH, false); // <-- Not working as expected - I want to disable Basic Auth here curl_setopt(self::$connection, CURLOPT_URL,