W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1996

HTParse

From: Gecse Roland <groland@balu.sch.bme.hu>
Date: Fri, 5 Apr 1996 17:16:00 +0200 (MET DST)
To: www-lib <www-lib@w3.org>
Message-Id: <Pine.OSF.3.91.960405170446.13454B-100000@balu.sch.bme.hu>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:26 GMT