/**
  * {@inheritDoc}
  */
 protected function httpRequest($url, $content = null, $parameters = array(), $headers = array(), $method = null)
 {
     foreach ($parameters as $key => $value) {
         $parameters[$key] = $key . '="' . rawurlencode($value) . '"';
     }
     if (!$this->options['realm']) {
         array_unshift($parameters, 'realm="' . rawurlencode($this->options['realm']) . '"');
     }
     $headers[] = 'Authorization: OAuth ' . implode(', ', $parameters);
     return parent::httpRequest($url, $content, $headers, $method);
 }
 /**
  * {@inheritDoc}
  */
 protected function httpRequest($url, $content = null, $parameters = array(), $headers = array(), $method = null)
 {
     $authorization = 'Authorization: OAuth';
     if (null !== $this->getOption('realm')) {
         $authorization = 'Authorization: OAuth realm="' . rawurlencode($this->getOption('realm')) . '"';
     }
     foreach ($parameters as $key => $value) {
         $value = rawurlencode($value);
         $authorization .= ", {$key}=\"{$value}\"";
     }
     $headers[] = $authorization;
     return parent::httpRequest($url, $content, $headers, $method);
 }