访问网页的时候用HttpWatch可以看到Rediret信息(用于网页转向)如何获取要访问网页中的Redirect信息???

解决方案 »

  1.   

    在前台中可以写个函数:
     function showlocation()
            {
                alert(window.location.host);
                alert(window.location.hostname);
                alert(window.location.href);
                alert(window.location.port);
            }
    得到你想到的URl中的信息。
      

  2.   

    redirect是用于网页转向的比如一个下载链接点击进去后server会分配一个redirect转向地址 这个地址是要下载文件的真实地址我们客户端怎么获取这个redirect??
      

  3.   

    使用socket 发送get 返回的数据中如果statuscode为301或者302将会有个
    content-location值就是redirect地址了。