473,406 Members | 2,336 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Firewall blocks download

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
0 1473

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jochen Rittscher | last post by:
Hallo, ich habe aus der php-faq nachfolgendes Script an meine Bedürfnisse angepasst, den Teil der für Speichern der Downloads zuständig ist habe ich nicht geposted: <? // $download sei der...
4
by: Dean J. Garrett | last post by:
I have a site which offers documents (.doc, .pdf, etc.) for download. The user clicks on the link and is able to download the file or open it. What if the source location of the document is behind...
2
by: Rajesh Kapur | last post by:
Hello, We use Informix and MySQL on linux/unix to drive our web application. SQL*Server is used only for backend enterprise applications within the firewall. I am trying to get the management to...
0
by: Timothy Parez | last post by:
Hello, I've seen some front-ends for the windows firewall api (for example: http://www.codeproject.com/internet/drvfltip.asp) but I'm not familiar with C++. Now I wonder if someone can show...
3
by: Bohus | last post by:
would like to make firewall that checks all outgoing traffic from my computer. This firewall should ask me to allow or deny all outgoing traffic. Is it possible to make such firewall using C# ?...
3
by: Karuppasamy | last post by:
Hi I am trying to use the Logging Module provided by Microsoft Application Blocks for .Net . I installed everything as per the Instructions given in the 'Development Using the Logging Block'. ...
1
by: Al Cadalzo | last post by:
I have a web page that allows a user to download data by clicking on a link button. I then use Aspose.Excel (v1.0.3705) to generate the file for download and then I call the "Save" method on the...
1
by: cagdas.gerede | last post by:
Could anyone suggest some documentations or example implementations on how to implement a firewall for Windows platform that can block based on Mac addresses instead of IP addresses. ...
1
Frinavale
by: Frinavale | last post by:
Hi there, I'm currently using VB .Net to develop a web application that sends emails periodically. Everything works fine in the test environment but not on the real server. After reviewing the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.