Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement