Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = 'http://dynupdate.no-ip.com/ip.php';
- $proxy = '127.0.0.1:8888';
- //$proxyauth = 'user:password';
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,$url);
- curl_setopt($ch, CURLOPT_PROXY, $proxy);
- //curl_setopt($ch, CURLOPT_PROXYUSERPWD, $proxyauth);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_HEADER, 1);
- $curl_scraped_page = curl_exec($ch);
- curl_close($ch);
- echo $curl_scraped_page."\n\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement