On Jun 6, 2006, at 5:45 pm, patrick o'leary wrote:
ns_return should do it for you
e.g.
ns_return 401 text/html "Sorry but you can't come in, please......."
Your suggestion wasn't working for me wasn't working for me, and then
looking at the C code I realized you need to also add a WWW-
Authenticate header, like so:
ns_set put [ns_conn outputheaders] "WWW-Authenticate" {Basic
realm="BookMooch"}
ns_return 401 "text/html" [ns_adp_parse -file "/src/authfailed.adp"]
otherwise IE goes into death-spin if you just do the ns_return.
-john
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.