Hi all,
I want to try to return a web site's favicon file. I thought this should be relatively easy, but I guess not. I'm stuck trying to figure out how to return the "base" URL. What I mean is, for example, I don't want to return url=http://www.apple.com/iphone, I need to return =http://www.apple.com instead. I can't find an easy way to do this though, because there is no defined length, and all the different extensions (.com, .org, .net, .biz..., not to mention one for every country

) make it extremely difficult to parse out what I want from the URL.
How would I go about doing this?
Thanks for your help in advance!