Index: content_retriever.module
===================================================================
--- content_retriever.module	(revision 907)
+++ content_retriever.module	(working copy)
@@ -586,10 +586,17 @@
   if ($api_key != '') {
     //use api key to get a hash code for the service.
     $timestamp = (string) strtotime("now");
+
+    if (isset($_SERVER['SERVER_NAME'])) {
     $domain = $_SERVER['SERVER_NAME'];
     if ($_SERVER['SERVER_PORT'] != 80) {
       $domain .= ':' . $_SERVER['SERVER_PORT'];        
     }
+    }
+    else if (isset($_SERVER['HTTP_HOST'])) {
+      $domain = $_SERVER['HTTP_HOST'];
+    }
+
     $nonce = content_retriever_get_unique_code('10');
     $hash_parameters = array(
       $timestamp,
