title: Getting blank page using cURL twitter
body: <p>I'm trying to add a twitter account using PHP w/Codeigniter framework.<br>
  I'm getting a blank page with no error not even in my log.  The bearer token is okay, I added it directly in the code for testing.  </p>
  
  <p>What am I doing wrong? Any help is appreciated. Thank you</p>
  
  <p><strong>Controller: manage.php</strong></p>
  
  <pre><code>   if($_POST['platform'] == 'twitter'):
  
    $request = curl_init();
      $bearer = "AAAAAAAAAAAAAAAAAAAAAJ%xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; 
      curl_setopt($request, CURLOPT_SSLVERSION, 3);
      curl_setopt($request, CURLOPT_URL, 'https://api.twitter.com/1.1/application/rate_limit_status.json');
      curl_setopt($request, CURLOPT_HTTPHEADER, array('Authorization: Bearer '.$bearer));
      curl_setopt($request, CURLOPT_RETURNTRANSFER, true);
      $result = json_decode($content = curl_exec($request));
      curl_close($request);
      return($result);
  
      if($request == 0):
         $error = 'Sorry, rate limited';
      else:
  
          $account_data = @file_get_contents('http://api.twitter.com/1.1/users/show.json?screen_name='.$_POST['account_id'].'&amp;include_entities=true');
          $account_data = json_decode($account_data);
  
      endif;
  
      if($account_data != false):
          $new_account = array(
              'id' =&gt; $account_data-&gt;screen_name,
              'username' =&gt; $account_data-&gt;screen_name,
              'name' =&gt; $account_data-&gt;name,
              'link' =&gt; 'https://twitter.com/'.$account_data-&gt;screen_name,
              'picture' =&gt; $account_data-&gt;profile_image_url,
              'platform' =&gt; 'twitter'
          );
      else:
          $error = "Account Not Found";
      endif;
  </code></pre>
  
  <p><strong>views: add.php</strong></p>
  
  <pre><code>   &lt;?php
  
     if(isset($error)) echo "&lt;p&gt;".$error."&lt;/p&gt;";
  
  echo '&lt;form action="/manage/add" method="post" accept-charset="utf-8" style="margin-left:-15px; margin-top:-15px;"&gt;';
  
  echo form_error('account_id');
  echo '&lt;strong&gt;'.form_label('Account ID', 'account_id');
  echo form_input('account_id', set_value('account_id', ''),'style="width: 288px;"');
  
      echo form_label('Platform', 'platform');
      echo form_dropdown('platform', $platforms, set_value('platform', $this-&gt;input-&gt;post('platform')));
  
  $data = array('name' =&gt; 'submit', 'value' =&gt; 'Add Account', 'class' =&gt; 'submit');
  echo form_submit($data);
    ?&gt;
  
     &lt;?php echo form_close(); ?&gt;
  </code></pre>
  
  <p><strong>When I set it CURLOPT_RETURNTRANSFER, false I get.</strong></p>
  
  <p>{"rate_limit_context":{"application":"N3KVVzpE8d0qapC6kJJSw"},"resources":{"lists":{"/lists/subscribers":{"limit":15,"remaining":15,"reset":1373460189},"/lists/list":{"limit":15,"remaining":15,"reset":1373460189},"/lists/memberships":{"limit":15,"remaining":15,"reset":1373460189},"/lists/ownerships":{"limit":15,"remaining":15,"reset":1373460189},"/lists/subscriptions":{"limit":15,"remaining":15,"reset":1373460189},"/lists/members":{"limit":15,"remaining":15,"reset":1373460189},"/lists/subscribers/show":{"limit":15,"remaining":15,"reset":1373460189},"/lists/statuses":{"limit":180,"remaining":180,"reset":1373460189},"/lists/show":{"limit":15,"remaining":15,"reset":1373460189},"/lists/members/show":{"limit":15,"remaining":15,"reset":1373460189}},"application":{"/application/rate_limit_status":{"limit":180,"remaining":169,"reset":1373459343}},"friendships":{"/friendships/show":{"limit":15,"remaining":15,"reset":1373460189}},"users":{"/users/profile_banner":{"limit":180,"remaining":180,"reset":1373460189},"/users/suggestions/:slug/members":{"limit":15,"remaining":15,"reset":1373460189},"/users/show/:id":{"limit":180,"remaining":180,"reset":1373460189},"/users/suggestions":{"limit":15,"remaining":15,"reset":1373460189},"/users/lookup":{"limit":60,"remaining":60,"reset":1373460189},"/users/suggestions/:slug":{"limit":15,"remaining":15,"reset":1373460189}},"followers":{"/followers/list":{"limit":30,"remaining":30,"reset":1373460189},"/followers/ids":{"limit":15,"remaining":15,"reset":1373460189}},"statuses":{"/statuses/show/:id":{"limit":180,"remaining":180,"reset":1373460189},"/statuses/oembed":{"limit":180,"remaining":180,"reset":1373460189},"/statuses/retweeters/ids":{"limit":60,"remaining":60,"reset":1373460189},"/statuses/user_timeline":{"limit":300,"remaining":300,"reset":1373460189},"/statuses/retweets/:id":{"limit":60,"remaining":60,"reset":1373460189}},"help":{"/help/privacy":{"limit":15,"remaining":15,"reset":1373460189},"/help/tos":{"limit":15,"remaining":15,"reset":1373460189},"/help/configuration":{"limit":15,"remaining":15,"reset":1373460189},"/help/languages":{"limit":15,"remaining":15,"reset":1373460189}},"friends":{"/friends/ids":{"limit":15,"remaining":15,"reset":1373460189},"/friends/list":{"limit":30,"remaining":30,"reset":1373460189}},"favorites":{"/favorites/list":{"limit":15,"remaining":15,"reset":1373460189}},"search":{"/search/tweets":{"limit":450,"remaining":450,"reset":1373460189}},"trends":{"/trends/available":{"limit":15,"remaining":15,"reset":1373460189},"/trends/place":{"limit":15,"remaining":15,"reset":1373460189},"/trends/closest":{"limit":15,"remaining":15,"reset":1373460189}}}}</p>