Ns returnunauthorized

From AOLserver Wiki
Jump to navigation Jump to search

Man page: http://aolserver.com/docs/tcl/ns_returnunauthorized.html


NAME

ns_returnunauthorized - Return a 401 (Unauthorized) status message to the client

SYNOPSIS

ns_returnunauthorized ?connid?

DESCRIPTION

This command informs the client that they are not authorized to access the URL that was requested. Depending on the client, this may trigger the client to prompt its user to provide authentication credentials (such as username and password) which it can issue a subsequent request providing those details.
The optional connid parameter is deprecated and should not be used.
Note: The script does not end at the time this command is invoked. ns_adp_abort or ns_adp_return should be called to end script processing after ns_returnunauthorized.

EXAMPLES

   ns_returnunauthorized

SEE ALSO

ns_return, ns_returnadminnotice, ns_returnbadrequest, ns_returnerror, ns_returnfile, ns_returnforbidden, ns_returnfp, ns_returnnotfound, ns_returnnotice, ns_returnok, ns_returnredirect

-