Sample code for 30+ languages & platforms
B4X

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat B4X Downloads

B4X
Dim success As Boolean = False

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

'  Output:

'  /folder/page