I need to get port protocol details from a URL. Can some one please help me? I have tried with some code -
Uri uri = new Uri("http://stackoverflow.com/questions/ask");
string requested = uri.Scheme + Uri.SchemeDelimiter + uri.Host + ":" + uri.Port;
Problem 1 - This code does not tell me whether this is TCP or UDP or ISMP
Problem 2 - This code does not check the actual port/protocol details of the URL.
Problem 3 - I am not able to build the URL if I have URL like this - "stackoverflow.com".
Please some one help me.
Thanks Gulrej