Sample code for 30+ languages & platforms
C#

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat C# Downloads

C#
Chilkat.Http http = new Chilkat.Http();

string domain = http.GetDomain("https://chilkatsoft.com/refdoc/csharp.asp");
Debug.WriteLine(domain);

//  Output: chilkatsoft.com