本文介绍了为什么Fiddler破坏了我网站的重定向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么有时在页面转换时使用Fiddler会破坏我的网站.

Why does using Fiddler break my site sometimes on page transitions.

服务器端重定向后-在http响应中(如Fiddler中所示),我得到了:

After a server side redirect -- in the http response (as found in Fiddler) I get this:

对象已移动

该站点是ASP.NET 1.1/VB.NET 1.1 [sic]站点.

The site is an ASP.NET 1.1 / VB.NET 1.1 [sic] site.

为什么提琴手不只为我去那儿?我不明白.

Why doesnt Fiddler just go there for me? i dont get it.

我在开发时就很好地解决了这个问题,但是我担心其他代理服务器可能会给真实客户"造成此问题.我什至不知道到底是怎么回事.

I'm fine with this issue when developing but I'm worried that other proxy servers might cause this issue for 'real customers'. Im not even clear exactly what is going on.

推荐答案

这实际上是Response.Redirect所做的.它将302-对象移动响应发送给用户代理.然后,用户代理会自动转到302响应中指定的URL.如果您需要真正的服务器端重定向而不需要往返客户端,请尝试Server.Transfer.

That's actually what Response.Redirect does. It sends a 302 - Object moved response to the user-agent. The user-agent then automatically goes to the URL specified in the 302 response. If you need a real server-side redirect without round-tripping to the client, try Server.Transfer.

这篇关于为什么Fiddler破坏了我网站的重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 15:47