private static function getHeaderString($key, $val) { $key = trim(strtolower($key)); return $key . ': ' . $val; }