title: Request-URI Too Long - SMS API
body: <p>My problem is somehow peculiar. I have this bulksms api from my provider:</p>
  
  <pre><code>http://www.estoresms.com/smsapi.php?username=user&amp;password=1234&amp;sender=@@sender@@&amp;recipient=@@recipient@@&amp;m
  essage=@@message@@&amp;
  </code></pre>
  
  <p>then i wrapped it in PHP and passed it in cURL:  </p>
  
  <pre><code>$api = "http://www.estoresms.com/smsapi.php?username=".$sms_user."&amp;password=".$sms_pwd."&amp;sender=".$sender_id."&amp;recipient=".$numbers."&amp;message=".$text."&amp;";
  
  function curl_get_contents($url)
  {   
  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
  $data = curl_exec($ch);
  curl_close($ch);
  return $data;
  }
  $send_it =  curl_get_contents($api);
  </code></pre>
  
  <p>ordinarily, it worked fine, but when $recepient (phone numbers) are more than say 300, i get an error:</p>
  
  <p><strong>Request-URI Too Long
  The requested URL's length exceeds the capacity limit for this server.
  Additionally, a 414 Request-URI Too Long error was encountered while trying to use an ErrorDocument to handle the request.</strong></p>
  
  <p>But BulkSMS should be able to send to thousands of numbers at a time.
  From my research, i found out that there's a limit to URL. I'm not the server owner. i working on a shared hosting plan. pls how can i get around this problem. I know there's a solution to it that would not mean buying my own server.</p>
  
  <p>Thanks</p>