diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc
index 7f4b26b..efebbd2 100644
--- a/core/includes/install.core.inc
+++ b/core/includes/install.core.inc
@@ -10,6 +10,8 @@
 use Symfony\Component\HttpFoundation\Request;
 use Symfony\Component\HttpFoundation\Response;
 
+use Guzzle\Http\Exception\BadResponseException;
+
 /**
  * @file
  * API functions for installing Drupal.
@@ -1437,7 +1439,7 @@ function install_download_translation(&$install_state) {
 }
 
 /**
- * Attempts to get a file using drupal_http_request and to store it locally.
+ * Attempts to get a file using a http request and to store it locally.
  *
  * @param string $uri
  *   The URI of the file to grab.
@@ -1459,14 +1461,21 @@ function install_retrieve_file($uri, $destination) {
   else {
     $path = $destination;
   }
-  $result = drupal_http_request($uri);
-  if ($result->code != 200) {
-    return FALSE;
+
+  try {
+    $data = drupal_container()
+      ->get('http_default_client')
+      ->get($uri, array('Accept' => 'text/plain'))
+      ->send()
+      ->getBody(TRUE);
+    if (empty($data)) {
+      return FALSE;
+    }
   }
-  if (file_put_contents($path, $result->data) === FALSE) {
+  catch (BadResponseException $e) {
     return FALSE;
   }
-  return TRUE;
+  return file_put_contents($path, $data) !== FALSE;
 }
 
 /**
@@ -1476,12 +1485,17 @@ function install_retrieve_file($uri, $destination) {
  *  The URI to contact.
  *
  * @return string
- *   URI of the server if the localization server was contacted successfully.
- *   FALSE if not.
+ *   TRUE if the URI was contacted successfully, FALSE if not.
  */
 function install_check_localization_server($uri) {
-  $result = drupal_http_request($uri, array('method' => 'HEAD'));
-  return (!isset($result->error) && $result->code == 200);
+  $request = drupal_container()->get('http_default_client')->head($uri);
+  try {
+    $response = $request->send();
+    return TRUE;
+  }
+  catch (BadResponseException $e) {
+    return FALSE;
+  }
 }
 
 /**
