如何从一个网页地址的分析出主页?比如:
http://www.xxx.com/htm/dir/send.html中,如何返回其主页http://www.xxx.com/ ?请赐教,谢了.