From memory, with cgi, if there is a location header, a redirect is assumed.
With mod_webkit, you need to set the response code, I think.
Jay
> -----Original Message-----
> From: Chuck Esterbrook [mailto:ChuckEsterbrook@...]
> Sent: Thursday, December 06, 2001 1:44 PM
> To: jsliv@...
> Cc: webware-devel@...
> Subject: [Webware-devel] mod_webkit bug?
>
>
> The following redirect works with OneShot.cgi, but not with
> mod_webkit:
>
>
> from WebKit.HTTPServlet import HTTPServlet
>
> class Main(HTTPServlet):
>
> def _respond(self, trans):
> trans.response().setHeader("Location", "Home")
>
> def respondToGet(self, trans):
> self._respond(trans)
>
> def respondToPost(self, trans):
> self._respond(trans)
>
>
>
> Where there is obviously a Home.py in the same directory.
> With mod_webkit
> the behavior is simply a blank page. eg, no redirect.
>
> Jay, since you wrote mod_webkit, I was wondering what you
> thought of this?
>
>
> -Chuck
>
> _______________________________________________
> Webware-devel mailing list
> Webware-devel@...
> https://lists.sourceforge.net/lists/listinfo/webware-devel
>
----------------------------------------------------------------------------
This e-mail and any attachments may be confidential or legally privileged.
If you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein. Please inform us of the erroneous delivery by return
e-mail.
Thank you for your cooperation.
----------------------------------------------------------------------------
|