W3C home > Mailing lists > Public > whatwg@whatwg.org > February 2008

[whatwg] Referer header sent with <a ping>?

From: Darin Fisher <darinf@gmail.com>
Date: Sun, 3 Feb 2008 13:45:14 -0500
Message-ID: <ec4a571d0802031045t33405f22i2001dd7858be2330@mail.gmail.com>
On Feb 2, 2008 9:59 PM, dolphinling <lists at dolphinling.net> wrote:

> Ian Hickson wrote:
> > On Fri, 1 Feb 2008, Julian Reschke wrote:
> >> Ian Hickson wrote:
> >>> What do people think of this idea:
> >>>
> >>> We make "Referer" always have the value "PING".
> >> Referer takes a relative reference, or a URI. Not a good idea.
> >
> > Interesting.
> >
> > I see two ways forward here. One would be to redefine Referer to remove
> > the relative URI thing, since, to my knowledge at least, nobody uses it.
> >
> > The other is that we can define the magic value to be "#PING" instead,
> > since that's a non-conforming Referer value right now.
> >
> > Would that work for people? dolphinling? Darin?
>
> If (X-)Ping-From/Ping-To are present, why is a referer needed at all? I'd
> say
> just leave it out. If not, #PING works for me.



It's true that the Ping-From/To headers carry the important information, but
I suspect that sending a Referer header is nice for servers that happen to
receive unsolicited pings.  Server logs will likely store the value of the
Referer header, and this way, site admins can see why they are receiving
these funny POST messages.

Julian, "#PING" seems like a reasonable choice since it will not collide
with any pre-existing Referer header values.  I think that's what Ian had in
mind by writing "non-conforming".

-Darin




>
>
> Cookies and authentication headers I'm ambivalent about; no one's made a
> persuasive case either way for them, and I haven't looked myself.
>
>
> >>> We add two headers, "X-Ping-From" which has the value of the page that
> >>> had the link, and "X-Ping-To" which has the value of the page that is
> >>> being opened.
>
> (sorry for the double copy, Hixie, forgot to CC the list the first time)
>
> --
> dolphinling
> <http://dolphinling.net/>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20080203/f9dcad83/attachment.htm>
Received on Sunday, 3 February 2008 10:45:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:39 UTC