Could you add this feature in? It would be nice to do 301 redirects without having to print a webpage to do it with a meta. As it is now, it doesn't even understand the "Location:" header since it can't return anything other than a 200 status. Also, isn't it a security issue to have the server present a download from the scripts directory when there is an error? Why not instead present the browser with a valid header, e.g. "content-type: text/html" and then print an informative error message indicating there was an internal error? Of course you'll need to change that status to something in the 500 range preferably. Steve ------------------------------------------------------------- Surgemail doesn't read/use the status header I'm sorry, there is no way currently to return 404. The best you can do is just return a web page that sais "file not found' or whatever you want instead (which is presumably nicer for the user anyway?). The 'downloading' issue occurs if the any script fails to return a valid http content header. (The output isn't read and processed as with a normal web server so no 'special' headers will work like 'status' unless the browser itself understands it) ChrisP.
Last Message | Next Message