Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header('Content-type: text/html; charset=utf-8');
- $ch = curl_init("http://stackoverflow.com/");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($ch, CURLOPT_HEADER, true);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $html = curl_exec($ch);
- curl_close($ch);
- var_dump($html);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement