Skip Menu |
 

This queue is for tickets about the URI CPAN distribution.

Report information
The Basics
Id: 86269
Status: open
Priority: 0/
Queue: URI

People
Owner: Nobody in particular
Requestors: fastbean_au [...] yahoo.com.au
Cc:
AdminCc:

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



Subject: URI 1.60 authority
Date: Thu, 20 Jun 2013 14:29:15 +1000
To: bug-URI [...] rt.cpan.org
From: Sean Miller <fastbean_au [...] yahoo.com.au>
Download (untitled) / with headers
text/plain 514b
The URI::_generic->authority method does not handle a URI using the http_proxy format where the password contains a / ? or # character, e.g.: Show quoted text
>perl -e "use URI;my $p=URI->new('http://user.name:abc#
123@proxy.server.com:8000');print join(qq{\n},$p->host,$p->port,$p->userinfo)" user.name:abc 80 This in turn effects the host, port and userinfo methods and flows on through a number of other modules. sub authority { my $self = shift; $$self =~ m,^((?:$URI::scheme_re:)?)(?://([^/?\#]*))?(.*)$,os or die;
I've never heared about the http-proxy format for URLs.  Is it specified anywhere?
Subject: Re: [rt.cpan.org #86269] URI 1.60 authority
Date: Sun, 23 Jun 2013 05:33:45 +1000
To: bug-URI [...] rt.cpan.org
From: Sean Miller <fastbean_au [...] yahoo.com.au>
Download (untitled) / with headers
text/plain 888b
I don't know that there is a standard for http_proxy env vars as such, or if it is a commonly adopted convention, but the relevant standard would look to be RFC 3968 (https://tools.ietf.org/html/rfc3986#section-3.2), which says in part: "The authority component is preceded by a double slash ("//") and is terminated by the next slash ("/"), question mark ("?"), or number sign ("#") character, or by the end of the URI. authority = [ userinfo "@" ] host [ ":" port ] " While on the surface I might have a hard time reconciling the first part of this statement with the second, with pct-encoding of the userinfo component it makes more sense. On 22 June 2013 06:40, Gisle_Aas via RT <bug-URI@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=86269 > > > I've never heared about the http-proxy format for URLs. Is it specified > anywhere? > >


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.