Use drupal_http_request instead of cURL to improve performance.