bug in URI::URL for form http://host?query and http://host#frag?query

B. K. Oxley (Brian.Oxley@gateway.novasoft.com)
Mon, 09 Sep 1996 12:59:27 -0400


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.

Thanks,
--binkley