Accessible useragent name for client?
Could you make the user agent property accessible so we can change it at wish for what the client will send as user agent?
using (var ws = new WebSocket ("wss://example.com"))
{
ws.UserAgent = "something I can define easily with this accessible property";
}
For what do you change the value of User-Agent header?
Some sockets and sites do not accept unknown user-agents for several purposes
:+1: This is a huge issue. Especially when wanting to monitor websockets and look as inconspicious as possible. It leaves a genuine trail you may not want to.
I would also like this function! Now it's impossible to pretend the request is done by a browser, which is needed sometimes.
It's too bad to make your own version and stop using NuGet for this simple change. But if that is needed..
This would be great, I need it too
@sta
It's a damn embarrassment that this still isn't implemented. There are endless endpoints that only accept specific user agents.