See:

http://perl.apache.org/embperl/Faq.pod.3.html#How_can_I_customise_the_header
_t

You'll probably need to send a content type of application/zip.

Regarding the spaces, basically make the opening [- bracket be the very
first character in your Embperl file, and the closing -] be the last
character... otherwise the browser will see a .zip file that starts with an
extra space. If there are extra spaces at either the beginning or end of a
zip, and unzipper may have problems unzipping it. Whitespace withing the
[- -] doesn't matter, since it's just perl code and not sent to the browser.

-----Original Message-----
From: Scott Chapman [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 20, 2002 8:18 AM
To: Gerald Richter
Cc: [EMAIL PROTECTED]
Subject: Re: Sending zip file to browser


Gerald,
Thanks for the followup.  I have two questions:

1) By extra space in the file, you mean outside the [- -] embperl constructs
right?  (This can't be there because it will be sent to the browser which
will
cause problems, right?)

2) Don't you have to do something fancy with the http output headers?  How
do I tell the browser that a zip file is coming?



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to