Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $headers = array(
- 'Accept-Encoding: gzip, deflate');
- $ch = curl_init('http://en.wikipedia.org/');
- curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
- curl_setopt($ch,CURLOPT_HTTPHEADER,$headers);
- curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
- $res = curl_exec($ch);
- echo $res;
- curl_close($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement