ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-web
perl-win32-web
Re: application/x-zip-compresses MIME Type problem
by $Bill Luebkert other posts by this author
Aug 31 2001 6:21AM messages near this date
view in the new Beta List Site
application/x-zip-compresses MIME Type problem | GD::Chart
Syed Anwaruddin wrote:
>  
>  Hi All,
>  
>  I am using "application/x-zip-compressed" MIME type for downloading the
>  files.
>  
>  Once I get the "Save As" Dialog box to save the downloaded files, If I keep
>  this "Save As" Dialog Box idle for more than 5 minutes and then click "OK"
>  to Save the downloaded file, I am getting an error message as " Network
>  error.Unable to save the file. Please reset the Peer".

So don't wait for 5 minutes.  :)  Timeouts are a necessary part of TCP/IP - 
you can't keep the cicuit up forever.

>  When I save the downlaoded file immediately OR with in 5 minutes, It worked
>  fine.
>  
>  The part of my code is as follows:
>  
>  print "Content-Type: application/x-zip-compressed\n";
>          print "Content-disposition:  attachment; filename=\"$zipfile\"\n\n";
>  
>          binmode(ZIP);

You need to binmode STDOUT also if on Win32.

>          while (<ZIP>) {
>  
>              print $_;
>          }
>  
>          close(ZIP);
>  
>        # cleanup - remove the zip file
>        unlink("$zipfile");
>  
>  I don't have any clue about this problem. I am getting this problem on UNIX
>  and NT. Please help me on this. Please let me know the "cause" for this
>  behaviour. Your help in this regard is greatly appreciated!!

-- 
  ,-/-  __      _  _         $Bill Luebkert   ICQ=14439852
 (_/   /  )    // //       DBE Collectibles   Mailto:dbe@[...].com 
  / ) /--<  o // //      http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_     Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
Perl-Win32-Web mailing list
Perl-Win32-Web@[...].com
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
Thread:
Syed Anwaruddin
$Bill Luebkert

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved