PowerShell
PowerShell
Example: Http.GetUrlPath method
Demonstrates theGetUrlPath method.
Chilkat PowerShell Downloads
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