PL / SQL: how to determine which browser is used?

I am using pl / sql htp package to create simple web pages. Now I need to use different templates based on the device accessing the pages (Desktop Browser or Mobile Blackberry Client).

Is this possible in pl / sql?

+4
source share
2 answers

This will tell you:

owa_util.get_cgi_env('HTTP_USER_AGENT') 
+6
source

I have never used oracle or htp, I can not provide much help, but a little search engine suggests that you can use the utl_http.get_header procedure, and the specific header that interests you will be the User-Agent .

I suggest finding the utl_http package for more information.

-2
source

All Articles