title: Content-length in php file_get_content post request
body: <p>I am trying to update Google fussion table through a php post request. URL works perfectly fine on <a href="https://developers.google.com/oauthplayground/" rel="nofollow">Auth PlayGround</a>. See the image below. Sorry! Stack overflow is not allowing me to post image, please use this link <a href="https://docs.google.com/file/d/0BwxnPrGJ8UfOd3dMWHZpMF9ISHM/edit?pli=1" rel="nofollow">Image</a></p>
  
  <p>But when I try the same using php post request file_get_content, it shoots with an error "411 Length Required". What length is the code asking for. Obviously its not content length because its "Zero" in this case.</p>
  
  <pre><code>&lt;?php
  $url = https://www.googleapis.com/fusiontables/v1/query?sql=INSERT INTO 1f_Z_********bQ-br8g17rFWBknri03fz-EQc (Name, Phone) VALUES ('Anees Hameed', '9895435751')
  $Post = array('http' =&gt;
      array(
          'method'  =&gt; 'POST',
          'header'  =&gt; 'Content-type: application/json',
          'header'  =&gt; 'GData Version: 3.0',
          'header'  =&gt; 'Authorization: Bearer '.$_Session[access_token]
      )
  );
  $Post= stream_context_create($Post);
  $request = file_get_content($url, false, $Post);
  ?&gt;
  </code></pre>
  
  <p>How to get rid of this error.</p>