Sample code for 30+ languages & platforms
Perl

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Perl Downloads

Perl
use chilkat();

$success = 0;

$http = chilkat::CkHttp->new();
$url = "https://example.com/folder/page?lang=en&sort=asc#section2";
print $http->getUrlPath($url) . "\r\n";

# Output:

# /folder/page