从 Web 服务请求中检索客户端信息

发布于 2024-07-13 14:30:52 字数 59 浏览 3 评论 0原文

如果我有一个请求服务的应用程序,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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

许久 2024-07-20 14:30:52

如果应用程序设置了 HTTP 请求的 UserAgent 标头,您可以使用它。

You can use the UserAgent header of the HTTP request if the application sets it.

他夏了夏天 2024-07-20 14:30:52

正如上面的帖子所建议的,这必须在请求或标头中发送。

对于什么是“应用程序”,没有互联网标准,因此“应用程序名称”当然也没有标准。

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".

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文