diff -Naur a/browscap/import.inc b/browscap/import.inc --- a/browscap/import.inc 2012-02-23 02:20:00.000000000 +1000 +++ b/browscap/import.inc 2012-02-23 15:09:18.000000000 +1000 @@ -15,7 +15,10 @@ $local_version = variable_get('browscap_version', 0); // Retrieve the current browscap data version number - $current_version = drupal_http_request('http://browsers.garykeith.com/versions/version-number.asp'); + $current_version = drupal_http_request('https://browsers.garykeith.com/versions/version-number.asp'); + if (isset($current_version->error)) { + $current_version = drupal_http_request('http://browsers.garykeith.com/versions/version-number.asp'); + } // Log an error if the browscap version number could not be checked if (isset($current_version->error)) { @@ -48,7 +51,10 @@ } // Fetch the latest browscap data - $browscap_data = drupal_http_request('http://browsers.garykeith.com/stream.asp?PHP_BrowsCapINI'); + $browscap_data = drupal_http_request('https://browsers.garykeith.com/stream.asp?PHP_BrowsCapINI'); + if (isset($browscap_data->error)) { + $browscap_data = drupal_http_request('http://browsers.garykeith.com/stream.asp?PHP_BrowsCapINI'); + } // Log an error if the browscap data could not be retrieved if (isset($browscap_data->error) || empty($browscap_data)) {