Index: sms_simplegateway.module
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>windows-1252
===================================================================
--- sms_simplegateway.module	(revision )
+++ sms_simplegateway.module	(revision )
@@ -192,7 +192,12 @@
 
   switch ($config['sms_simplegateway_method']) {
     case 'GET':
-      $http_result = drupal_http_request($config['sms_simplegateway_base_url'] . '?' . $query_string);
+      $http_result = $config['sms_simplegateway_base_url'];
+      if(strpos($http_result, "?") === FALSE)
+        $http_result .= '?';
+      else
+        $http_result .= '&';
+      $http_result = drupal_http_request($http_result . $query_string);
       break;
     case 'POST':
       $http_result = drupal_http_request($config['sms_simplegateway_base_url'], array(
@@ -202,7 +207,7 @@
       ));
       break;
   }
-
+  
   // Check for HTTP errors
   if ($http_result->error) {
     return array(
