provisoner
provisoner copied to clipboard
Apache base authentication
To allow authentication of sites that use password protected apache base auth Provisoner needs to be modified to send the correct auth headers :-
function curl_init(){ $this->_curlSession = curl_init(); curl_setopt($this->_curlSession, CURLOPT_HTTPAUTH, CURLAUTH_BASIC ) ; curl_setopt($this->_curlSession, CURLOPT_USERPWD, "username:password"); }
Note: replace "username" and "password" in the function above with the appropriate values for your site.
Then search for "$this->_curlSession = curl_init();" and replace it with "$this->curl_init();"
Original reporter user Jayster