On Mon, 2002-08-19 at 12:14, [EMAIL PROTECTED] wrote:
> from WebKit.Servlet import Servlet
> 
> class ZipSample(Servlet):
>    def respond(self, trans):
>        trans.response().write('Content-type: application/zip; 
>name="test.zip"\nContent-Transfer-Encoding: base64\n\n\nHello, world!\n')

You need use addHeader, like:

trans.response().addHeader('Content-type', 'application/zip; name="test.zip")

There's no particular reason to use base64, but each header would be its
own addHeader() call.

  Ian




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to