title: curl warning when passing a url
body: <p>I am debugging this issue for two days now but I couldn't found any issue of this code. Please guide me what I am doing wrong?</p>
  
  <pre><code>&lt;?php
  
  $curl = curl_init();
  
  curl_setopt_array($curl, array(
      'CURLOPT_RETURNTRANSFER'    =&gt; 1,
      'CURLOPT_URL'               =&gt; 'https://api.instagram.com/v1/users/self/feed?access_token=' . $tocken,
      ));
  
  $respond    = curl_exec($curl);
  
  if(!$respond){
      echo curl_error($curl);
      exit;
  }
  
   curl_close($curl);
  
  var_dump(json_decode($respond, true));
  </code></pre>
  
  <p>I am getting this error.</p>
  
  <blockquote>
    <p>Warning: curl_setopt_array() [function.curl-setopt-array]: Array keys must be CURLOPT constants or equivalent integer values in /home/..../test.php on line 8
    No URL set!</p>
  </blockquote>