Url fragment and Referer header

独自空忆成欢 提交于 2019-12-01 03:21:00

The spec says that Referer can't include a fragment identifier (per ABNF). See RFC 2616, Section 14.36.

I saw the same behavior in IE today. I am using IE 11.0.9600.17801 and upon inspection i found out that the 'Referer' header contains this fragment identifier.

Referer: //abc:8080/myapp/ver/index.htm#search-basics

Although I am quite certain that I have seen this behavior on and off with the same browser.

The spec says basicly that you can do whatever you want - it is an optional header, i just tested webkit ignores the fragment, as do firefox and IE.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!