Sample code for 30+ languages & platforms
Visual FoxPro

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Visual FoxPro Downloads

Visual FoxPro
LOCAL lnSuccess
LOCAL loHttp
LOCAL lcUrl

lnSuccess = 0

loHttp = CreateObject('Chilkat.Http')
lcUrl = "https://example.com/folder/page?lang=en&sort=asc#section2"
? loHttp.GetUrlPath(lcUrl)

* Output:

* /folder/page

RELEASE loHttp