Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why HTTP_REFERER is single r, not HTTP_REFERRER?

Sometimes my facebook friend confuses HTTP_REFERER and HTTP_REFERRER, because in the dictionary there is referrer only. Why does that misspelled standard protocol define, and why they don't try to correct the bug?

like image 408
neoevoke Avatar asked Nov 22 '11 11:11

neoevoke


People also ask

Why is Referer empty?

There might be several reasons why the referer URL would be blank. It will/may be empty when the enduser: entered the site URL in browser address bar itself. visited the site by a browser-maintained bookmark.

What is referrer example?

In more simple terms, the referer is the URL from which came a request received by a server. A good example is if you click a link on the page site.com/page to go to another-site.com/link, the HTTP Referer received by another-site.com/link will have the value site.com/page.

What is $_ server [' HTTP_REFERER ']?

$_SERVER['HTTP_REFERER'] Returns the complete URL of the current page (not reliable because not all user-agents support it) $_SERVER['HTTPS'] Is the script queried through a secure HTTP protocol.

Why is HTTP Referer misspelled?

The misspelling of referrer was introduced in the original proposal by computer scientist Phillip Hallam-Baker to incorporate the "Referer" header field into the HTTP specification.


2 Answers

http://en.wikipedia.org/wiki/HTTP_referrer

Origin of the term referer

The misspelling referer originated in the original proposal by computer scientist Phillip Hallam-Baker to incorporate the field into the HTTP specification.[1] The misspelling was set in stone by the time of its incorporation into the standards document Request for Comments (RFC) 1945; document co-author Roy Fielding has remarked that neither "referrer" nor the misspelling "referer" were recognized by the standard Unix spell checker of the period.[2] "Referer" has since become a widely used spelling in the industry when discussing HTTP referrers; usage of the misspelling is not universal, though, as the correct spelling of "referrer" is used in some web specifications such as the Document Object Model.

like image 107
sagi Avatar answered Sep 22 '22 08:09

sagi


See wikipedia

The misspelling referer originated in the original proposal by computer scientist Phillip Hallam-Baker to incorporate the field into the HTTP specification.[1] The misspelling was set in stone by the time of its incorporation into the standards document Request for Comments (RFC) 1945; document co-author Roy Fielding has remarked that neither "referrer" nor the misspelling "referer" were recognized by the standard Unix spell checker of the period.[2] "Referer" has since become a widely used spelling in the industry when discussing HTTP referrers; usage of the misspelling is not universal, though, as the correct spelling of "referrer" is used in some web specifications such as the Document Object Model.

like image 25
Ron Sijm Avatar answered Sep 24 '22 08:09

Ron Sijm