You are here

function cc::http_auth_headers in Constant Contact 6.2

* This method adds the necessary HTTP auth headers to communicate with the API * * * @access private

1 call to cc::http_auth_headers()
cc::http_build_request_headers in ./class.cc.php
* This method calls other methods * It is mainly here so we can do everything in the correct order, according to HTTP spec * *

File

./class.cc.php, line 1721

Class

cc
@file

Code

function http_auth_headers() {
  if ($this->http_user || $this->http_pass) {
    $this
      ->http_headers_add('Authorization', " Basic " . base64_encode($this->http_user . ":" . $this->http_pass));
  }
}