title: Unknown authorization header error with Buzz API - Using Zend OAuth
body: <p>Here's the response I keep getting when trying to create a new
  activity:</p>
  
  <pre><code>{"error":{"errors":[{"message":"Unknown authorization
  header","locationType":"header","location":"Authorization"}],"code":
  401,"message":"Unknown authorization header"}}
  </code></pre>
  
  <p>Here's the request I sent (for debugging):</p>
  
  <pre><code>POST /buzz/v1/activities/@me/@self?alt=json HTTP/1.1
  Host: www.googleapis.com
  Connection: close
  Accept-encoding: gzip, deflate
  User-Agent: Zend_Http_Client
  Content-Type: application/json
  Authorization: OAuth
  realm="",oauth_consumer_key="eawp.com",oauth_nonce="ce29b04ce6648fbb92efc8f08c1c0091",oauth_signature_method="HMAC-
  SHA1",oauth_timestamp="1277934794",oauth_version="1.0",oauth_token="1%2FcBzo5ckGvCAm3wLWh1SDH3xQNoW--
  yek1NVfUa1Qqns",oauth_signature="CUezSiMbvxyN1BTeb3uROlIx8gA%3D"
  Content-Length: 86
  
  {"data":{"object":{"type":"note","content":"Using OAuth with Twitter -
  PHP Example"}}}
  </code></pre>
  
  <p>All the other requests to get the access_token worked just fine, but
  now I'm not too sure why it's not working.</p>
  
  <p>** Update</p>
  
  <p>To assist with the debugging a bit more, here is the code in question: </p>
  
  <pre><code>$config = array( 
    //'requestScheme' =&gt; Zend_Oauth::REQUEST_SCHEME_HEADER, 
    //'version' =&gt; '1.0', 
    //'signatureMethod' =&gt; 'HMAC-SHA1', 
    'callbackUrl' =&gt; $callback, 
    'siteUrl' =&gt; $url, 
    'consumerKey' =&gt; $consumerKey, 
    'consumerSecret' =&gt; $consumerPass 
  ); 
  $statusMessage = $title; 
  $token = unserialize($accessToken); 
  $client = $token-&gt;getHttpClient($config); 
  $client-&gt;setUri('https://www.googleapis.com/buzz/v1/activities/@me/ 
  @self?alt=json'); 
  $client-&gt;setMethod(Zend_Http_Client::POST); 
  $client-&gt;setEncType(Zend_Http_Client::ENC_FORMDATA); 
  $client-&gt;setHeaders('Content-Type: application/json'); 
                                  $data = array( 
                                          'data'   =&gt; array( 
                                                  'object'  =&gt; array( 
                                                          'type'     =&gt; 'note', 
                                                          'content'  =&gt; $statusMessage, 
                                                  ), 
                                          ), 
                                  ); 
                                  $dataXml = "&lt;entry xmlns='http://www.w3.org/2005/Atom' 
  xmlns:activity='http://activitystrea.ms/spec/1.0'&gt; 
                                                                                  &lt;activity:object&gt; 
                                                                                      &lt;activity:object-type&gt;http://activitystrea.ms/schema/1.0/ 
  note&lt;/activity:object-type&gt; 
                                                                                      &lt;content type='html'&gt;$statusMessage&lt;content&gt; 
                                                                                    &lt;/activity:object&gt; 
                                                                                  &lt;/entry&gt;"; 
  //$client-&gt;setRawData($dataXml); 
  $client-&gt;setRawData(Zend_Json::encode($data)); 
  //$client-&gt;setParameterPost("content", $statusMessage); 
  $response = $client-&gt;request(); 
  </code></pre>
  
  <p>** As you can see, I did a bit of testing with both the xml+atom and 
  json requests - not much luck with either. </p>
  
  <p>Can you see anything clearly wrong there? And another reminder that I 
  am using Zend_Oauth. </p>