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


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>

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


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


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?


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:33:47 UTC