-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
  • 39,551
  • 56
  • 175
  • 291
ali kamrani
  • 73
  • 1
  • 8

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,202
  • 2
  • 19
  • 36