diff --git a/modules/system/system.module b/modules/system/system.module
index 8fc517f..c5dc651 100644
--- a/modules/system/system.module
+++ b/modules/system/system.module
@@ -3454,6 +3454,8 @@ function system_image_toolkits() {
  *   - FILE_EXISTS_RENAME: Append _{incrementing number} until the filename is
  *     unique.
  *   - FILE_EXISTS_ERROR: Do nothing and return FALSE.
+ * @param array $options = array()
+ *   An array that can have one or more elements for drupal_http_request.
  *
  * @return mixed
  *   One of these possibilities:
@@ -3463,7 +3465,7 @@ function system_image_toolkits() {
  *     object which describes the file.
  *   - If it fails, FALSE.
  */
-function system_retrieve_file($url, $destination = NULL, $managed = FALSE, $replace = FILE_EXISTS_RENAME) {
+function system_retrieve_file($url, $destination = NULL, $managed = FALSE, $replace = FILE_EXISTS_RENAME, array $options = array()) {
   $parsed_url = parse_url($url);
   if (!isset($destination)) {
     $path = file_build_uri(drupal_basename($parsed_url['path']));
@@ -3477,7 +3479,7 @@ function system_retrieve_file($url, $destination = NULL, $managed = FALSE, $repl
       $path = $destination;
     }
   }
-  $result = drupal_http_request($url);
+  $result = drupal_http_request($url, $options);
   if ($result->code != 200) {
     drupal_set_message(t('HTTP error @errorcode occurred when trying to fetch @remote.', array('@errorcode' => $result->code, '@remote' => $url)), 'error');
     return FALSE;
