Sample code for 30+ languages & platforms
PowerShell

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

$http = New-Object Chilkat.Http
$url = "https://example.com/folder/page?lang=en&sort=asc#section2"
$($http.GetUrlPath($url))

# Output:

# /folder/page