从 Web 服务请求中检索客户端信息
如果我有一个请求服务的应用程序,Web 服务是否可以确定应用程序的名称,或者是否必须在请求中发送该名称?
If i have an applicataion requesting a service, is it possible for the web service to determine the name of the application or does this have to be sent within the request?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果应用程序设置了 HTTP 请求的 UserAgent 标头,您可以使用它。
You can use the UserAgent header of the HTTP request if the application sets it.
正如上面的帖子所建议的,这必须在请求或标头中发送。
对于什么是“应用程序”,没有互联网标准,因此“应用程序名称”当然也没有标准。
This would have to be sent in the request, or in the headers, as the above post suggests.
There is no Internet standard as to what an "application" is, so there's certainly no standard for "application name".