Sample code for 30+ languages & platforms
Java

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat Java Downloads

Chilkat2 Java
import com.chilkatsoft.chilkat2.Http;

public class ChilkatExample {

    public static void main(String[] args) {
        Http http = new Http();

        String domain = http.getDomain("https://chilkatsoft.com/refdoc/csharp.asp");
        System.out.println(domain);

        // Output: chilkatsoft.com
    }
}