abachus has asked for the wisdom of the Perl Monks concerning the following question:
I would like to extract a domain name from an arbitrary url. A nice easy example :
The data will be coming from a UserAgent request header, so i will need to grab the GET *url* HTTP/1.1 line and work from there. Any thoughts on the best way to do this ?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Extracting a domain name from a url
by rhesa (Vicar) on Oct 15, 2006 at 14:30 UTC | |
|
Re: Extracting a domain name from a url
by blazar (Canon) on Oct 15, 2006 at 15:27 UTC | |
by rhesa (Vicar) on Oct 15, 2006 at 18:26 UTC | |
by abachus (Monk) on Oct 15, 2006 at 23:02 UTC | |
by ministry (Scribe) on Oct 16, 2006 at 01:10 UTC | |
by ikegami (Patriarch) on Oct 16, 2006 at 01:49 UTC | |
|
Re: Extracting a domain name from a url
by fenLisesi (Priest) on Oct 16, 2006 at 09:03 UTC |