Sample code for 30+ languages & platforms
PureBasic

Example: Http.GetDomain method

Demonstrates the GetDomain method.

Chilkat PureBasic Downloads

PureBasic
IncludeFile "CkHttp.pb"

Procedure ChilkatExample()

    http.i = CkHttp::ckCreate()
    If http.i = 0
        Debug "Failed to create object."
        ProcedureReturn
    EndIf

    domain.s = CkHttp::ckGetDomain(http,"https://chilkatsoft.com/refdoc/csharp.asp")
    Debug domain

    ; Output: chilkatsoft.com


    CkHttp::ckDispose(http)


    ProcedureReturn
EndProcedure