Sample code for 30+ languages & platforms
DataFlex

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat DataFlex Downloads

DataFlex
Use ChilkatAx-win32.pkg

Procedure Test
    Boolean iSuccess
    Handle hoHttp
    String sUrl
    String sTemp1

    Move False To iSuccess

    Get Create (RefClass(cComChilkatHttp)) To hoHttp
    If (Not(IsComObjectCreated(hoHttp))) Begin
        Send CreateComObject of hoHttp
    End
    Move "https://example.com/folder/page?lang=en&sort=asc#section2" To sUrl
    Get ComGetUrlPath Of hoHttp sUrl To sTemp1
    Showln sTemp1

    // Output:

    // /folder/page


End_Procedure