By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,746 Members | 1,865 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,746 IT Pros & Developers. It's quick & easy.

Firewall blocks download

P: n/a
Hi

I have a problem with a script that allows a user to download a .exe file.
It works fine for all browsers that I have tried, but only behind certain
firewalls. With Norton, everything looks fine except that the downloaded
file has size zero and has no content. Is there anything I can do (perhaps
with the HTTP headers) to get the whole file through Norton firewalls - I
have included the relevant part of my code below. Note that the firewall
does not block normal downloads of .exe files, but this would be an
unacceptable solution for us.

header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"install.exe\"");
header("Content-Description: File Transfert");
if (@readfile($swsource)==FALSE) {
header("Content-type: text/html");
header("Content-Disposition: ");
header("Content-Description: ");
die("Download failed(4)");
}

Thanks for any help

Morten Jensen


Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.