Sample code for 30+ languages & platforms
Perl

Example: Http.GetUrlPath method

Demonstrates the GetUrlPath method.

Chilkat Perl Downloads

Chilkat2 Perl
use strict;
use warnings;
use Chilkat2;

my $success = 0;

my $http = Chilkat2::Http->new;
my $url = 'https://example.com/folder/page?lang=en&sort=asc#section2';
print $http->GetUrlPath($url), "\n";

# Output:

# /folder/page