Web Request using SMS API To

 

 i have such LINK: http://sms.bulksmsind.in/sendSMS?username=admin&message=XXXXXXXXXX&sendername=infotp&smstype=TRANS&numbers=<mobile_numbers>&apikey=XXXXXXXXXXXX



I wrote code:


void SMSapi(string userID,string password,string senderID,string phone,string text) 
  { 
   int    res;     
   char   data[];  

   string str="user="+userID+
              "&pass="+password+
              "&sender="+senderID+
              "&phone="+phone+
              "&text="+text+
              "&priority=ndnd&stype=normal"; 

   ArrayResize(data,StringToCharArray(str,data,0,WHOLE_ARRAY,CP_UTF8)-1); 

   res=WebRequest("GET","http://sms.bulksmsind.in/sendSMS?username=admin&message=+text+&sendername=infotp&smstype=TRANS&numbers==PHONE+&apikey=XXXXXXXXXXXX; 
   Print(res);
}

But this code don't work. I try "GET" and "POST" requests, but nothing. I read, that if in link "...sendmsg.php?.." there is "?" then it must be "GET" request.

Please, help me create correct request.

Thanks.

Reason: