Re: URL.pm 2.9 (was Re: a patch for URI::URL 2.7 (?) )

Tim Bunce (Tim.Bunce@ig.co.uk)
Wed, 10 May 1995 11:27:36 +0100


> From: Martijn Koster <m.koster@nexor.co.uk>
> 
> In message <9505091320.aj27689@post.demon.co.uk>, Tim Bunce writes:
> 
> > > A fundamental problem I could not solve though: if the base url is a
> > > directory, but has no trailing "/", then the path for the child url is
> > > computed wrong. Is there a way to determine, if an url is a directory
> > > in the absence of a trailing slash?
> >
> > That's an interesting question.
> 
> Nope. A server might know, and some cleverly redirect to the right
> URL.  It'd be nice of HTTP had a facility for returning a document
> along with a different 'better' URL to prevent the round trip. You
> could do this with a new Response header for 200, or some new 300
> trick. Slightly prone to abuse, but clients can guard against that.
> I'm not aware of this being proposed for HTTP/1.1.
> 
Okay.

> > Could someone (Martijn?) on libwww-perl integrate this?
> 
> Ehr, no, it breaks the tests and doesn't work, I assume you mean
> $port :-) I've alse added some tests to illustrate behaviour.
> 
Wonderful. Great patch, thanks.

> -- Martijn
> 
Tim.