Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detection for mobile device
Message
From
29/12/2015 11:20:38
 
 
To
29/12/2015 10:45:33
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01629341
Message ID:
01629385
Views:
22
>>Maybe I'm misunderstanding your problem. If you create a client HttpWebRequest then you can just set its UserAgent property to whatever you wish.
>
>Yes, but that is only an exception. The reference to HttpWebRequest was for a custom client that is calling the framework. The framework, on the server side, is responsible for much more than that. So, it has to be kept generic. I also want to cover the possibility, that even if I would define a user agent on the client side, that others can do the same and not pass it. In that case, I really need to verify for its nothing object.

AFAICS if the client request does not set a UserAgent then that property will be null on the server - is that not what you are seeing ?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform