develooper Front page | perl.libwww | Postings from April 2003

Resolving unterminated URL paths

Thread Next
From:
Rob Dixon
Date:
April 10, 2003 06:04
Subject:
Resolving unterminated URL paths
Message ID:
20030410130453.13457.qmail@onion.perl.org
Hi all.

Can somebody suggest how I might resolve the following?

If I make a GET request to a server with a URL like

    http::/ww.domain.com/path/path/name

how can I determine whether what is passed back is actually
this path (i.e. 'name' is a resource) or if what I am getting is
really

    http::/ww.domain.com/path/path/name/default.htm

or the equivalent?

The reason I ask is that this clearly has a bearing on relative
links within the data returned. Are they relative to

    http::/ww.domain.com/path/path/name/
or to
    http::/ww.domain.com/path/path/
?

I'd be grateful for any help. Thanks,

Rob









Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About