在vb中用xmlhttp提取某一网址的网页内容,如果网页内有重定向语句,如何跟踪网页重定向?(如其他解决方案,不采用xmlhttp也可以)
提取网址为"http://www.quchecn.com.cn"的网页内容
Dim X As New XMLHTTP
X.open "get", "http://www.quchen.com.cn", False
X.send
strBody = StrConv(X.responseBody, vbUnicode)
得出网页内容如下
<script>
window.location="main.php";
</script>
这部份包含了location重定向,那么我就要再次取出http://www.quchen.com.cn/main.php的网页内容再进一步分析.
有没有什么好的方法.