CURL / PHP有没有办法让访问者下载远程文件?

Is there a way for my visitor to download a file which is in another site that is behind a login ?

The problem : - The filename list is on another site behind a login - You have to login to download

currently my code can login with curl and display the link to download file , user can click the link but they can't download because their browser is not logged in to that site.

I know i can save the file temporary with curl ( download the file with curl to my server and the visitor download from my server )

But Is there a way to allow them to download directly from my site ?

I hope i explain the problem clearly. ps. its my university site, and its painful to check if there is a new things to download, so i want to make it easier for my friends.

Thanks

I think , you have to use this url on the link .

$username = 'abc';
$pasword = 'xyz';
$file_url = "google.com";
http://$usename:$password@$file_url