title: Send GET request without CURL
body: <p>I'm trying to send GET request without CURL but with Header.
  What is the problem?</p>
  
  <p>Here is code of my bla bla bla bla bla bla bla: </p>
  
  <pre><code>private function getRequest($url, $data){
      $uri = $this-&gt;api_url . $url;
      $content = http_build_query($data);
      $content = urldecode($content); 
  
      $options = array(
          'http' =&gt; array(
              'header'  =&gt; "Content-type: application/x-www-form-urlencoded\r\n" . 
                              "Authorization : Bearer " . $this-&gt;access_token . "\r\n",
              'method'  =&gt; 'GET',
              'content' =&gt; $content,//$data = ['key' =&gt; 'value']
          ),
      );
  
      $context  = stream_context_create($options);
      var_dump($context); //resource(70) of type (stream-context) 
      if (fopen($uri, 'r', false, $context)) //NO
          echo "yes";
      else  
          echo "no";
      fpassthru($fp); //empty
  
  }
  </code></pre>
  
  <p>Here is $options return value:</p>
  
  <pre><code>    Array
  (
      [http] =&gt; Array
          (
              [header] =&gt; Content-type: application/x-www-form-urlencoded
  Authorization : Bearer kEQn2I02JOegz6gD4
  
              [method] =&gt; GET
              [content] =&gt; address=%D0%9C%D0%BE%D1%81%D0%BA%D0%B2%D0%B0 //cyrillic, with ENG doesn't work anyway
          )
  
  )
  </code></pre>