Sample code for 30+ languages & platforms
DataFlex

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat DataFlex Downloads

DataFlex
Use ChilkatAx-win32.pkg

Procedure Test
    Handle hoHttp
    String sDomain

    Get Create (RefClass(cComChilkatHttp)) To hoHttp
    If (Not(IsComObjectCreated(hoHttp))) Begin
        Send CreateComObject of hoHttp
    End

    Get ComGetDomain Of hoHttp "https://chilkatsoft.com/refdoc/csharp.asp" To sDomain
    Showln sDomain

    // Output: chilkatsoft.com


End_Procedure