Sample code for 30+ languages & platforms
Xbase++

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Xbase++ Downloads

Xbase++
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()