I can't understand where i am doing wrong.
below is my code:
$message = "testing from the application.";
$mobile_number = ""; //hidden for security
$sender = ""; //hidden for security
$ch = curl_init(""); //hidden for security, http://ip
curl_setopt($ch, CURLOPT_URL, "api.php?username=&password=&number=$mobile_number&sender=$sender&type=0&message=$message");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
echo $output = curl_exec($ch);
echo curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
curl_getinfo
return 0, and $output
did't return anything, but the Document says if the request successful then the $output
is 1101.
I tested it in the postman, the result is ok.