File: getUri.php

Recommend this page to a friend!
  Classes of zinsou A.A.E.Moïse   JavaScript CORS Request   getUri.php   Download  
File: getUri.php
Role: Auxiliary script
Content type: text/plain
Description: php script useful to avoid CORS limitations
Class: JavaScript CORS Request
Get remote page via DOM without CORS restrictions
Author: By
Last change: upload the right file
Date: 6 years ago
Size: 357 bytes
 

Contents

Class file image Download
<?php error_reporting(0);set_time_limit(0);echo file_get_contents(htmlspecialchars($_GET['url']),false,stream_context_create($opts = array('http'=>array('method'=>"GET",'user_agent'=>isset($_SERVER['HTTP_USER_AGENT'])?$_SERVER['HTTP_USER_AGENT']:"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"))));?>