Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = "https://epusheg.com:32000/sendbulk/? username=********&password=*****&message=this+is+bricks+test&from=****& to=*****&lang=e";
- if($fp = tmpfile())
- {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,$url);
- curl_setopt($ch, CURLOPT_STDERR, $fp);
- curl_setopt($ch, CURLOPT_CERTINFO, 1);
- curl_setopt($ch, CURLOPT_VERBOSE, 1);
- curl_setopt($ch, CURLOPT_HEADER, 1);
- curl_setopt($ch, CURLOPT_NOBODY, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
- $result = curl_exec($ch);
- curl_errno($ch)==0 or die("Error:".curl_errno($ch)." ".curl_error($ch));
- fseek($fp, 0);//rewind
- $str='';
- while(strlen($str.=fread($fp,8192))==8192);
- echo $str;
- fclose($fp);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement