$url = 'https://www.ssldun.cn/clientarea.php?action=productdetails&id=2&modop=custom&a=DownloadCert';$con = 'WHMCSy551iLvnhYt7=382h2f4u8eo25oiovc9p2ffsu3';$rand = rand(10000,99999) ;//Random number $filename= time().$rand.'.zip';//Send a request to get the name of the compressed package. Need to delete//Send a request with cookie to get the contents of the compressed package. $opts = array('http' => array('header'=> 'Cookie:'.@$con.''));$context = stream_context_create($opts);$contents = file_get_contents($url, false, $context);var_dump( $contents);
That is, when this code is deployed on the server, the file cannot be obtained
What is the return result? Is there any error message?