W3C home > Mailing lists > Public > www-lib@w3.org > July to September 1999

How to expand a relative URL into an absolute one ?

From: Michael Maretzke <michael.maretzke@gmx.de>
Date: Mon, 23 Aug 1999 05:01:03 -0400 (EDT)
To: "Libwww" <www-lib@w3.org>
Message-ID: <002501beed45$dd2776f0$604aa2c2@develop9.ibs.debis.de>
Hello !

I parse a "<a href="./foo.html"> ... </a>" using the callback-functions.
This file is located on a server called "http://www.foo.com" and is stored
in
directory "/test/test2/". "/" is here the WWW-root-directory.

Extracting the parameter file "./foo.html" is no problem. But now I've
to expand this relative URL "./foo.html" into an absolute one
"http://www.foo.com/test/test2/foo.html". How may I do this ?
Which one of these libwww-servicefunctions is the right one for me ?

Sorry for asking this kind of rookie-question ... but documentation
is confusing me concerning URL-handling.

Thanx for your millions of answers !

RU Michael.
Received on Monday, 23 August 1999 06:06:51 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:17 UTC