How to expand a relative URL into an absolute one ?

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