title: php curl is not fetching the data from youtube API
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3757071/php-debugging-curl">Php - Debugging Curl</a>  </p>
  </blockquote>
  
  
  
  <p>I am using curl to fetch the user data from youtube API 
  The code is </p>
  
  <pre><code>    $url_userInfo =  'https://gdata.youtube.com/feeds/api/users/default?access_token=ya29.AHES6ZS7GMdZf91LbMtoOdhFSFOpTuHHT-t7pSggAp-tS0A;
  
  print_r($url_userInfo);
  $ch = curl_init($url_userInfo);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_TIMEOUT, '3');
  $content = curl_exec($ch);
  curl_close($ch);
  print_r( $content);
  </code></pre>
  
  <p>If I manually visit this url it displays the data in xml form. but there is nothing to print in <code>$content</code>. </p>
  
  <p>Is there any problem with code?? </p>