Sample code for 30+ languages & platforms
Visual Basic 6.0

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Visual Basic 6.0 Downloads

Visual Basic 6.0
Dim success As Long
success = 0

Dim http As New ChilkatHttp
Dim url As String
url = "https://example.com/folder/page?lang=en&sort=asc#section2"
Debug.Print http.GetUrlPath(url)

' Output:

' /folder/page