【发布时间】:2016-10-10 13:04:04
【问题描述】:
我正在编写一个从网页调用的网络服务,我需要知道请求是否来自网络或移动浏览器,包括嵌入的 android webview, webservice 是 c# , svc webservice。
【问题讨论】:
标签: c# web-services svc
我正在编写一个从网页调用的网络服务,我需要知道请求是否来自网络或移动浏览器,包括嵌入的 android webview, webservice 是 c# , svc webservice。
【问题讨论】:
标签: c# web-services svc
你可以得到调用User-Agent
WebOperationContext.Current.IncomingRequest.Headers["User-Agent"];
并检查它是否移动。
【讨论】: