This brings up a question I've been meaning to ask about adapters.  
Do they set the HTTP response header or is that the responsiblity of 
the AppServer, Response, etc?  I couldn't find any code, where they 
do this, but I also couldn't find anywhere that AppServer or 
HTTPResponse do it either.  All I found was HTTPResponse.setStatus() 
(but I'm going from memory here ;)

I prefer the AppServer and HTTPResponse being in charge of that as it 
makes it easier to write things like an builtin HTTPServer.

Tavis

On Thursday 06 December 2001 10:43, Chuck Esterbrook wrote:
> 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
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-devel

_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to