HTTP位置标头中的完全限定的URL。为什么它很重要? [英] Fully-qualified urls in HTTP Location header. Why it is important?

查看:203
本文介绍了HTTP位置标头中的完全限定的URL。为什么它很重要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我从Fiddler那里得到了一些警告,说明我在HTTP位置标题中有不好的URL,它们应该是完全合格的。为什么它很重要以及可能导致哪些问题?

解决方案

RFC 2616§14.30 )要求 Location be一个绝对的URI。

实现经验表明这并不重要,许多实现允许 Location 中的相对URI,因此当前的标准( RFC 7231§7.1.2 )允许相对URI 。


So I've got some warnings from Fiddler that I have bad urls in HTTP Location header and they are should be fully-qualified. Why it's so important and what issues that can lead to?

解决方案

The old standard for HTTP/1.1 (RFC 2616 § 14.30) required that Location be an absolute URI.

Implementation experience showed that this was not important, and many implementations allowed relative URIs in Location, so the current standard (RFC 7231 § 7.1.2) allows relative URIs.

这篇关于HTTP位置标头中的完全限定的URL。为什么它很重要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
其他开发最新文章
热门教程
热门工具
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆