-3

I'm writing a webservice which is call'd from a webpage, I need to know if request comes from web or mobile browser including embeded android webview, webservice is c# , svc webservice.

Uwe Keim
  • 38,279
  • 56
  • 171
  • 280

1 Answers1

0

You can get the calling User-Agent

WebOperationContext.Current.IncomingRequest.Headers["User-Agent"];

And do your check if its mobile or not.

take
  • 2,174
  • 2
  • 18
  • 36