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.
我正在尝试CGI.http_user_agent使用 RAILO 显示,但由于某种原因它是空的。其他人遇到过这个问题吗?这不应该一直存在吗?
CGI.http_user_agent
我检查了我的日志,有时它存在,有时它不存在。
HTTP 用户代理是浏览器通常发送的标头之一["User-Agent"]。它既不是必需的,也不是权威的。一些浏览器可以选择伪造用户代理(例如黑莓浏览器),而其他浏览器如 cfhttp 可以设置为用户想要的任何内容。
如果浏览器不发送标头,它在 RAILO 中将是空白的。