Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $user_agent = 'test/1.0 (http://tshirtfamily.fr/; test@mail.de)';
- ini_set('user_agent', $user_agent);
- $site_url = htmlspecialchars($_POST['url']);
- $design = [];
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $site_url);
- curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
- $resultat = curl_exec($ch);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement