Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 77756
Status: new
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: gwittel [...] proofpoint.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.60
Fixed in: (no value)



Subject: URI Path Truncated
Download (untitled) / with headers
text/plain 219b
For a URI like: 'http://twitter.com/#!/abc123', the 'path' or 'path_query' returns '/': use URI; my $u = URI->new('https://twitter.com/#!/example.com'); print $u->path; # returns '/' Using Perl 5.8.8 x86, Centos 5.5
From: gwittel [...] proofpoint.com
Download (untitled) / with headers
text/plain 572b
I just realized this is due to the 'fragment' feature. Would it make sense to add a function or a perldoc note to retrieve everything after the initial '/' including the fragment? Otherwise, feel free to close as invalid if no doc clarification or code change is wanted. On Mon Jun 11 13:05:21 2012, gwittel@proofpoint.com wrote: Show quoted text
> For a URI like: 'http://twitter.com/#!/abc123', the > 'path' or 'path_query' returns '/': > > > use URI; > my $u = URI->new('https://twitter.com/#!/example.com'); > print $u->path; # returns '/' > > Using Perl 5.8.8 x86, Centos 5.5


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.