开发者

PL/SQL: How to detect which browser is being used?

开发者 https://www.devze.com 2022-12-14 10:29 出处:网络
I\'m using the pl/sql htp package to create开发者_JS百科 simple web pages. Now I need to use different templates based on the device accessing the pages (Desktop Browser or Mobile Blackberry Client ).

I'm using the pl/sql htp package to create开发者_JS百科 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?


This will tell you:

owa_util.get_cgi_env('HTTP_USER_AGENT')


Having never used oracle or htp, I can't provide much help, but a bit of googling suggests you can use procedure utl_http.get_header, and the particular header you are interested in would be User-Agent.

I suggest looking up the utl_http package for more information.

0

精彩评论

暂无评论...
验证码 换一张
取 消