[prev in list] [next in list] [prev in thread] [next in thread]
List: perl-win32-web
Subject: Re: application/x-zip-compresses MIME Type problem
From: "$Bill Luebkert" <dbe () wgn ! net>
Date: 2001-08-31 6:21:39
[Download RAW message or body]
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@todbe.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@listserv.ActiveState.com
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic