have you tried owa_utl.get_cgi_env('HTTP_REFERER') ?