[Boa-devel] boa wish-list: two items
Brought to you by:
jnelson
From: David N. <dav...@pa...> - 2004-05-09 01:44:42
|
hi, I've been happily running boa on some obsolete hardware and I am happy with its mild memory footprint. My wish-list containst two items, both pertaining to extending the CGI environment to be more apache-like. 1: the current directory is not changed to where a CGI program lives before running it. I patched the source of my installed boa to support this. It appeared that it was supposed to but didn't work. 2: Spoiled by Apache, I often write programs that attempt to redirect the browser to another page by simply outputting a "Location: ..." header and exiting. Apache intercepts this and prefixes a 302 response code instead of a 200 response code. $ (echo GET /bin/locatomatic?go=http://a.b.c HTTP/1.0; echo) | hose tipjar.com 80 -slave HTTP/1.1 302 Found Date: Fri, 07 May 2004 20:47:43 GMT Server: Apache/1.3.27 OpenSSL/0.9.6 (Unix) Location: http://a.b.c Connection: close Content-Type: text/html; charset=iso-8859-1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <HTML><HEAD> <TITLE>302 Found</TITLE> </HEAD><BODY> <H1>Found</H1> The document has moved <A HREF="http://a.b.c">here</A>.<P> </BODY></HTML> Boa does not do this, which I discovered by chasing down a failure: Boa serves a 200 header even when all the output is is a Location directive. For the moment I'm rewriting my relocating programs to use "refresh" instead of location rather than getting Boa to parse the outputs from CGI programs, but identifying CGI output of Location: (...something...) and treating it like a redirect temporary directive is my second wish list item. Thanks -- dav...@pa.... I know you, junk mail. Gonna miss you when you're gone |