完美解决file_get_contents引起的failed to open stream: HTTP request failed!
<?php
ini_set('user_agent','Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36');
$data_content = file_get_contents( $url );