|
.exe package is corrupted
No luck :-( My suspision was exactly that; below is the code that I changed to see if that was the cause. I am not very sure what happens with the LWP download (LWP is a perl module). I am not very good in Perl. I learnt Perl for this application.
open(DLFILE, "<$files_location$_[0]") || Error('open', 'file');
@fileholder = <DLFILE>;
close (DLFILE) || Error ('close', 'file');
print "Content-length: $filesize\n";
# print "Content-Type:application/x-download\n";
print "Content-Type:application/binary\n";
print "Content-Disposition:attachment;filename=$_[0]\n\n";
print @fileholder;
|