Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 pl/sql htp 包来创建简单的网页。现在我需要根据访问页面的设备(桌面浏览器或移动黑莓客户端)使用不同的模板。
这在pl/sql中可能吗?
这会告诉你:
owa_util.get_cgi_env('HTTP_USER_AGENT')
从未使用过 oracle 或 htp,我无法提供太多帮助,但是一些谷歌搜索表明您可以使用 procedure utl_http.get_header,并且您感兴趣的特定标头是User-Agent.
utl_http.get_header
User-Agent
我建议查找 utl_http 包以获取更多信息。