apache - Is it possible to return HTTP response code to the browser using pl/sql? -


i working on web application written in pl/sql . uses basic authentication. there no efficient way of logging out unless close browser. using on log off page

owa_util.mime_header('text/html', false, null); v_browser:= owa_util.get_cgi_env('http_user_agent'); owa_cookie.send('wdb_gateway_logout', 'yes', path=>'/'); -- close http header owa_util.status_line(401,'unauthorzed access', true); owa_util.http_header_close; 

is possible. i'll appreciate help. thank

yes, oracle has package called utl_http , utl_url

from docs:

http_unauthorized constant pls_integer := 401 

resp type

this pl/sql record type used represent http response.

syntax

type resp record (    status_code    pls_integer,    reason_phrase  varchar2(256),    http_version   varchar2(64), ); 

Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -