function TwitterOAuth::getHeader in Tweet Feed 7
Same name and namespace in other branches
- 6 inc/twitter-oauth.inc \TwitterOAuth::getHeader()
- 7.3 inc/twitter-oauth.inc \TwitterOAuth::getHeader()
- 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);
}