为什么Transfer会隐藏目标页面的地址? [英] Why does Transfer hide the target page's address?

查看:76
本文介绍了为什么Transfer会隐藏目标页面的地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我好奇为什么MS决定让转移隐藏目标页面的网址

看不见?

任何猜测?

谢谢。

Dee。

Hi,
I''m curious why MS decided to have Transfer hide the target page''s url
invisible?
Any guesses ?
Thanks.
Dee.

推荐答案

微软没有做出任何决定,这只是服务器的行为。


在重定向上,命令被发送回浏览器,浏览器的责任是

。重定向到该位置。在转移时,

没有发生服务器 - 浏览器交互。服务器只是简单地执行不同的代码,但浏览器无法知道,因为它永远不会从服务器收到任何信号。只要收到一些HTML,浏览器就不关心在服务器上执行什么代码




这是我不会使用Transfer的一个原因(虽然它有它的b
目的,但不是很经常)。


" dee" < de*@home.net>在消息中写道

新闻:uI ************** @ TK2MSFTNGP11.phx.gbl ...
Microsoft did not decide anything, it is just the behavior of the server.

On a Redirect, a command is sent back to the browser and it is the
responsibility of the browser to redirect to the location. On a Transfer,
no server-browser interaction happens. The server just simply executes
different code, but the browser has no way of knowing that because it never
receives any signal from the server. The browser does not care what code
executes on the server as long as it receives some HTML.

This is one reason that I will not use Transfer (although it has its
purpose, but not very often).

"dee" <de*@home.net> wrote in message
news:uI**************@TK2MSFTNGP11.phx.gbl...
我很好奇为什么MS决定将转移隐藏目标页面的网址隐藏?
任何猜测?
谢谢。
Dee。
Hi,
I''m curious why MS decided to have Transfer hide the target page''s url
invisible?
Any guesses ?
Thanks.
Dee.



因为在这种情况下,浏览器不会收到重定向

的通知。它认为它收到了最初请求的页面。

如果您希望显示新页面的URL,请使用Response.Redirect。这个

通知浏览器重定向。


" dee" < de*@home.net>在消息中写道

新闻:uI ************** @ TK2MSFTNGP11.phx.gbl ...
Because in this case the browser doesn''t get notified that a redirect
occurred. It thinks it received the page originally requested.
If you want the new page''s URL to show up, use Response.Redirect. This
informs the browser of the redirect.

"dee" <de*@home.net> wrote in message
news:uI**************@TK2MSFTNGP11.phx.gbl...
我很好奇为什么MS决定将转移隐藏目标页面的网址隐藏?
任何猜测?
谢谢。
Dee。
Hi,
I''m curious why MS decided to have Transfer hide the target page''s url
invisible?
Any guesses ?
Thanks.
Dee.



感谢Marina,

重定向是否需要额外一次到服务器?


Marina" ; <所以***** @ nospam.com>在消息中写道

新闻:Oo ************** @ TK2MSFTNGP09.phx.gbl ...
Thanks Marina,
Does redirect involve one extra trip to the server?

"Marina" <so*****@nospam.com> wrote in message
news:Oo**************@TK2MSFTNGP09.phx.gbl...
因为在这种情况下浏览器没有收到重定向
的通知。它认为它收到了最初请求的页面。
如果您希望显示新页面的URL,请使用Response.Redirect。这将
通知浏览器重定向。

dee < de*@home.net>在消息中写道
新闻:uI ************** @ TK2MSFTNGP11.phx.gbl ...
Because in this case the browser doesn''t get notified that a redirect
occurred. It thinks it received the page originally requested.
If you want the new page''s URL to show up, use Response.Redirect. This
informs the browser of the redirect.

"dee" <de*@home.net> wrote in message
news:uI**************@TK2MSFTNGP11.phx.gbl...

我是'好奇为什么MS决定让转移隐藏目标页面的网址
看不见?
任何猜测?
谢谢。
Dee。
Hi,
I''m curious why MS decided to have Transfer hide the target page''s url
invisible?
Any guesses ?
Thanks.
Dee.




这篇关于为什么Transfer会隐藏目标页面的地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆