title: Improving curl performance
body: <p>I'm using a class written by someone else to try to connect to a website that's not mine, it's something like <a href="http://www.futhead.com" rel="nofollow">http://www.futhead.com</a>, where you are able to search for players and such using the EA JSON files.</p>
  
  <p>However the page and scripting works but it takes 4/5 sec to load every time.</p>
  
  <p>I think this might be due to the use of curl, I've looked here for some answers but none didn't really improve anything.
  Are there any other options to improve speed?</p>
  
  <pre><code>$ch = curl_init($login);                                                                    
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");                                                                     
  curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);                                                                  
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
  curl_setopt($ch, CURLOPT_HEADER, true);                
  curl_setopt($ch, CURLOPT_HTTPHEADER, array(                                                                          
  'Content-Type: application/x-www-form-urlencoded',                                                                                
      'Content-Length: ' . strlen($data_string))                                                                       
  );                                                                                                                   
  $response = curl_exec($ch);
  curl_close($ch);
  </code></pre>