Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Pathname from URL
- Andre Majorel
April 16, 2014, 9:28 am
rate this thread
to a Unix pathname like
The same sort of thing that wget -x does.
Even better if it offers the option of honouring the
Content-disposition HTTP header.
Thanks in advance !
André Majorel http://www.teaser.fr/~amajorel/
Endless variations make it all seem new
Can you recognise the patterns that you find ?
Re: Pathname from URL
use feature qw/say/;
my $url = URI->new('http://foobar.org/%7Ea/b/c?d=e/f#g ');
my $scheme = $url->scheme;
(my $what_you_want = $url->canonical)=~s/^$scheme:\/\///;