Java
Chilkat2 Java
Example: Http.GetDomain method
Demonstrates theGetDomain method.
Chilkat Java Downloads
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
}
}