Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $url = $_GET["url"];
- if(isset($url))
- {
- //$data = file_get_contents($url);
- $encoded_url = urlencode($url);
- header("Content-Type: image/jpeg");
- $ch = curl_init($url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1');
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1);
- curl_setopt($ch, CURLOPT_AUTOREFERER,1);
- echo curl_exec($ch);
- curl_close($ch);
- }
- else
- {
- echo ( "rev 3" );
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement