At 06:52 PM 7/13/2001 +0200, Gilles Poidevin wrote:
>I'd like to override "Page.py" of WebKit to write XML.
>But the default content-type is always "Content-Type: text/html".
>How do you do to have a "Content-Type: text/xml"?
self.response().setHeader('Content-Type:', 'text/xml')
should do the trick. All HTTP headers are manipulated via the Response.
You might also find it useful to create an abstract XMLPage class that
inherits Page and becomes the parent class of all your concrete XML pages.
Obviously, the set Content-Type: would go in there. I don't know if you
would come up with anything else...
-Chuck
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-discuss