Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function curl($url, $post=null){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- if($post != null){
- curl_setopt($ch, CURLOPT_POST, true);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
- }
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $exec = curl_exec($ch);
- curl_close($ch);
- return $exec;
- }
- header("Refresh:2");
- $html = curl('http://www.iniroots.com/?ref=10618');
- echo $html;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement