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