In short I want to do something like this:
var request = (HttpWebRequest)WebRequest.Create(url);
request.Host = "example.com";
request.ServerName = ""; // <---- How?
request.BeginGetResponse(callback, state);
I know the SNI extension is a part of TLS protocol, but I am not sure how to control it in C#.
I have seen a comment said that .Net 4.5 doesn't support SNI, but even I use .Net 4.0, the SNI is still sent.