You are here

function TwitterOAuth::getHeader in Tweet Feed 7

Same name and namespace in other branches
  1. 6 inc/twitter-oauth.inc \TwitterOAuth::getHeader()
  2. 7.3 inc/twitter-oauth.inc \TwitterOAuth::getHeader()
  3. 7.2 inc/twitter-oauth.inc \TwitterOAuth::getHeader()

Get the header info to store.

File

inc/twitter-oauth.inc, line 232

Class

TwitterOAuth
Twitter OAuth class

Code

function getHeader($ch, $header) {
  $i = strpos($header, ':');
  if (!empty($i)) {
    $key = str_replace('-', '_', strtolower(substr($header, 0, $i)));
    $value = trim(substr($header, $i + 2));
    $this->http_header[$key] = $value;
  }
  return strlen($header);
}