Retrieving Client Information from web service request

大城市里の小女人 提交于 2019-12-11 19:07:57

问题


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?


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/532170/retrieving-client-information-from-web-service-request

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!