Hi,
I am trying to send some querysting using cURL. This is the working
API
http://smpp4.routesms.com:8080/bulks...ge=testmessage.
The infomation given by Routesms.com:
Port: 2345
Server: SMPPHTTP
This is my code:
$ch = curl_init();
$url = "http://smpp4.routesms.com:8080/bulksms/bulksms?
username=xxxxxx&password=xxxxxxx&type=0&dlr=0&dest ination=94xxxxxxxxx&source=testing&message=testmes sage";
curl_setopt($ch,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$result = curl_exec($ch);
if(!$result){
echo "Failed<br>";
}
Following results are expected.
1701 = Success
1702 = Invalid URL Error
1703 = Invalid value in username or password field
1704 = Invalid value in "type" field
1705 = Invalid Message
1706 = Invalid Destination
1707 = Invalid Source (Sender)
1708 = Invalid value for "DLR" field
1709 = User validation failed
1710 = Internal Error
1025 = Insufficient Credit
Bu nothing is coming other than Failed.
Pls help me. Thank you in advance.
Lakmarket