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