The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 05-11-2008
Nanu_Manju Nanu_Manju is offline
Registered User
 

Join Date: Feb 2008
Posts: 12
.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;
Reply With Quote