HTParse

Hi!

How can I figure out the hostname from URL-s like this (also without the 
tailing slash):

http://www.sch.bme.hu/~groland

I know that this is not a valid URL since the HTTP server returns a 
redirection to:

http://www.sch.bme.hu/~groland/

but I need to extract the hostname from the first. I tried to use

.. = HTParse(url, "", PARSE_HOST)

but it returns NULL! Should I write my own hostname parser?

Regards,

Roland Gecse 
(groland@sch.bme.hu)

Received on Friday, 5 April 1996 10:16:20 UTC