Copyright (c)1995-2004 Purity Software <http://www.purity.com/>
========================================================================
WebSiphon v2.0.9
released on 2004-01-17
New in this version:
Unsupported/Conceptual Stuff:
With that caveat in mind this function can be quite helpful when responding to certain events, such as a request triggered by a web server ERROR action. This type of error is caused when an object is not located in the file system as indicated by the web request.
By overriding the standard HTTP 404 error response header, SiphonScript can be devised that acts as a programmatic meta-content server responding to "virtual" web requests which do not correlate directly with an object in the local file system.
example usage:
// included as component of web server 404 error page local my_head = "HTTP/1.0 200 OK\r\nServer: WebSiphon/2.0.9" & " MyPastaServer/1.0.8"; __setCustomHeader(my_head);
Known issues:
Though in most cases one is safe using null, its a good idea to work explicitly with the type and be prepared for loose coercions which may not be immediately obvious (ie. referencing a null value as a list in a comparison operation will cause a coercion to an empty list).