Re: bug in URI::URL for form http://host?query and http://host#frag?query
Gisle Aas (aas@bergen.sn.no)
Tue, 10 Sep 1996 10:19:19 +0200
In message <32344CEE.D80@NovaSoft.COM>, "B. K. Oxley (binkley)" writes:
> In LWP 5.01, when I create an URI::URL of the forms:
>
> http://some.host?query=string
> http://some.host#fragment?query=string
>
> URI::URL misparses this URL, and takes the entire portion following the
> host name to be a path, not a query or frament and query, respectively.
>
> If I add the default path ("/") to the URL, it works; that is:
>
> http://some.host/?query=string
> http://some.host/#fragment?query=string
>
> If you want to claim that the original forms are bad URLs, I'll concede
> the point (I don't actually know if they are legal or not), but it would
> be straight-forward to make them work nonetheless.
If you contribute a _small_ patch for your first case, then I might
consider it, but the RFCs clearly states that the "/" is required
before you can have any "?" in the URL.
In your second URL there is no way that we will end up with
"query=string" in the query part of the URL. Everything that follows
the "#" char will be part of the fragment specification. It is
supposed to be like that.
Regards,
Gisle