Sample code for 30+ languages & platforms
VB.NET

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat VB.NET Downloads

VB.NET
Dim success As Boolean = False

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

' Output:

' /folder/page