From: Chuck E. <Chu...@ya...> - 2001-12-09 15:35:47
|
On Saturday 08 December 2001 06:07 am, Geoffrey Talvola wrote: > On Friday December 07, 2001 04:43 pm, Chuck Esterbrook wrote: > > On Thursday 06 December 2001 12:04 pm, Love, Jay wrote: > > > 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. > > > > Yipee! That was it. Thanks, Jay. > > > > def _respond(self, trans): > > trans.response().setHeader("Location", "Home/") > > trans.response().setStatus(302, 'Moved') > > I'm wondering, why aren't you just using HTTPResponse.sendRedirect() > ? It already does this and more. Um.....because I forgot about that method! You're right. sendRedirect() is the way to go. I modified the wiki troubleshooting note accordingly: http://webware.colorstudy.net/twiki/bin/view/Webware/RedirectFails -Chuck |