Xbase++
Xbase++
Example: Http.GetUrlPath method
Demonstrates theGetUrlPath method.
Chilkat Xbase++ Downloads
LOCAL nSuccess
LOCAL oHttp
LOCAL cUrl
nSuccess := 0
oHttp := CreateObject("Chilkat.Http")
cUrl := "https://example.com/folder/page?lang=en&sort=asc#section2"
? oHttp:GetUrlPath(cUrl)
// Output:
// /folder/page
oHttp:destroy()