diff --git a/mozilla_openbadges_displayer.module b/mozilla_openbadges_displayer.module
index e10ce0e..6c5e3d5 100755
--- a/mozilla_openbadges_displayer.module
+++ b/mozilla_openbadges_displayer.module
@@ -67,18 +67,18 @@ function mozilla_openbadges_displayer_group_badges($account = NULL) {
       'data' => $data,
       'headers' => array('Content-Type' => 'application/x-www-form-urlencoded'),
     );
-    $result = drupal_http_request('http://beta.openbadges.org/displayer/convert/email', $options);
+    $result = drupal_http_request('https://beta.openbadges.org/displayer/convert/email', $options);
     $body = json_decode($result->data);
     if ($body->status !== 'missing') {
-      $groupsurl = "http://beta.openbadges.org/displayer/" . $body->userId . "/groups.json";
-      $groupsjson = file_get_contents($groupsurl, 0, NULL, NULL);
-      $groupsdata = json_decode($groupsjson);
+      $groupsurl = "https://beta.openbadges.org/displayer/" . $body->userId . "/groups.json";
+      $groupsresult = drupal_http_request($groupsurl);
+      $groupsdata = json_decode($groupsresult->data);
 
       $backpackdata = array();
       foreach ($groupsdata->groups as $group) {
-        $badgesurl = "http://beta.openbadges.org/displayer/" . $body->userId . "/group/" . $group->groupId . ".json";
-        $badgesjson = file_get_contents($badgesurl, 0, NULL, NULL);
-        $badgesdata = json_decode($badgesjson);
+        $badgesurl = "https://beta.openbadges.org/displayer/" . $body->userId . "/group/" . $group->groupId . ".json";
+        $badgesresult = drupal_http_request($badgesurl);
+        $badgesdata = json_decode($badgesresult->data);
 
         $badgesingroup = array();
         if (is_array($badgesdata->badges)) {
