diff --git a/stage_file_proxy.module b/stage_file_proxy.module
index 7b528f6..8376f04 100644
--- a/stage_file_proxy.module
+++ b/stage_file_proxy.module
@@ -64,14 +64,9 @@ function _stage_file_proxy_fetch($server, $remote_file_dir, $relative_path) {
     }
   }
   $url = $server . '/' . $remote_dir_path . '/' . rawurlencode($filename);
-  $ch = curl_init($url);
-  curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
-  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
-  curl_setopt($ch, CURLOPT_SSLVERSION, variable_get('stage_file_proxy_sslversion', 3));
-  curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/20080623 Firefox/2.0.0.15');
-  $res = curl_exec($ch);
-  if (curl_getinfo($ch, CURLINFO_HTTP_CODE) == 200) {
-    file_put_contents($file_dir . '/' . $relative_path, $res);
+  $response = drupal_http_request($url);
+  if ($response->code == 200) {
+    file_put_contents($file_dir . '/' . $relative_path, $response->data);
     return TRUE;
   }
   return FALSE;
