I am trying to call API parameters dynamically. Below is the code

```
   <?php
   $apikey="<API_KEY>";
   $senderid="TESTIN";
   $channel=2;
   $dcs=0; 
   $flashsms=0;
   $number="9171276664,678785612";
   $text="Hello Testing message dynamically";
   $route="11";

   $ch=curl_init("https://www.smsgatewayhub.com/api/mt/SendSMS?APIKey=".$apikey.'&senderid='.$senderid.'&channel='.$channel.'&DCS='.$dcs.'&flashsms='.$flashsms.'&number='.$number.'&text='.$text.'&route='.$route);
   ?>

```

It is throwing bad http request error!!!