无法打开流:HTTP请求失败

I wrote some code to find the email address form links. Links are stored in the data.txt file. I can't dd crul. Can anyone help?

<?php
$url=file("data.txt");
foreach ( $url as $key => $value) {
    $text=file_get_contents($value);
    $res = preg_match_all(
        "/[a-z0-9]+[_a-z0-9.-]*[a-z0-9]+@[a-z0-9-]+(.[a-z0-9-]+)*(.[a-z]{2,4})/i",$text,$matches);
    if ($res) {
        foreach(array_unique($matches[0]) as $email) {
            echo $email . "<br />";
        }}
    else {
        echo "No emails found.";
    }
}
?>