Monday, November 08, 2010 at 12:07 AM.
system.verbs.builtins.webserver.util.requestAuth
on requestAuth (adrParams, realm="Betty") { <<April 10, 1998 at 7:46:54 PM by WMF <<This script creates an HTTP authentication challenge <<The realm name isn't important; the browser just shows it to the user <<Why should you use this script? <<Because we might support more authentication methods in the future, and this script could handle them for you. adrParams^.responseHeaders.["WWW-Authenticate"] = "Basic realm=\"" + realm + "\""; adrParams^.code = 401; return (true)}
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.