title: Right way to set the OAuth Authorization header?
body: <p>I want to set a request header for a url xyz.com
  is it the right way to set it in php?</p>
  
  <pre><code>header('Authorization: AuthSub token="xxxxxx"');
  header('location:https://www.google.com/accounts/AuthSubRevokeToken');
  </code></pre>
  
  <p>I am trying to set the header for this URL for a call.But the Authorization: AuthSub header doesnt shows up in the request headers section of the FireFox NET panel.Which is used to show the requests.</p>
  
  <p>Any idea about it?
  Thanx.</p>
  
  <p>I was using curl previously,But it didnt seemed to issue any request as i cant see it in the NET panel of FireFox.
  Code is as follows:</p>
  
  <pre><code>$curl = curl_init(); 
  
      curl_setopt($curl, CURLOPT_URL,"https://www.google.com/accounts/AuthSubRevokeToken"); 
      curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
      curl_setopt($curl, CURLOPT_FAILONERROR, true);
      curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);   
      curl_setopt($curl, CURLOPT_HTTPHEADER, array('Authorization: AuthSub token="1/xxx"'
                      )); 
      $result = curl_exec($curl);  
      curl_close($curl);            
      echo 'hererer'.$result;exit; 
  </code></pre>