title: Can't send data in post request via file_get_contents
body: <p>Need to request some code two times in my app. Fist request url as ajax call, and also need to request this url in controller (something like hmvc). I know how to develop this via curl but I found another kind of idea how to implement this, just use function <strong>file_get_contents</strong>  with before prepared params. This my code:</p>
  
  <pre><code>    // Setup limit per page
      $args['offset'] = $offset;
      $args['limit']  = $this-&gt;_perpage;
      // --
  
      // Convert search arguments to the uri format
      $data = http_build_query($args);
  
      // Define request params
      $options = array(
          'http' =&gt; array(
              'header'  =&gt; 'Content-type: application/json' . PHP_EOL .
                           'Content-Length: ' . strlen($data) . PHP_EOL,
              'method'  =&gt; 'POST',
              'content' =&gt; $data,
          ),
      );
  
      $context = stream_context_create($options);
  
      $result  = file_get_contents(
          'http://'.$_SERVER['HTTP_HOST'].'/search/items', FALSE, $context
      );
  </code></pre>
  
  <p>Request method was detected ok in requested uri, but params wasn't passed. Why this is not pass arguments to request? Where is bug in my code? Many thanks for any answers.</p>