[p2p-hackers] Tighter HTTP and P2P integration??
Charles Iliya Krempeaux
supercanadian at gmail.com
Thu Feb 16 19:44:01 UTC 2006
Hello Greg,
On 2/16/06, Greg Bildson <gbildson at limepeer.com> wrote:
>
>
>
> > -----Original Message-----
> > From: p2p-hackers-bounces at zgp.org [mailto:p2p-hackers-bounces at zgp.org]On
> > Behalf Of Charles Iliya Krempeaux
> >
> > A "P2P conditional get" (sent by the client) would tell the server NOT
> > to send the requested document if there is an alternative way of
> > getting the document via a P2P technology supported by the client.
> > (The client would tell the server which P2P technologies it supports.)
> > (This "P2P conditional get" would work similar to the "If-None-Match"
> > and "If-Modified-Since" "conditional get" headers.).
> >
> > For example, it might be something like:
> >
> > X-If-No-Alternate: bittorrent, something-else, magnet
> >
> > First, this says that the client supports the protocols: "bittorrent",
> > "something-else", and "magnet". It also says it prefers "bittorrent"
> > first, then "something-else", and then "magnet".
>
>
> Are these hypothetical options for future web browsers? I take it that
> there would be no way to make a current browser actually communicate what
> the computer it's running on supports in this way right now?
First let me say that my proposal actually changed a bit. As I discussed
things with others on this mailing list (in other messages in this
thread/tree of e-mails) I modified my proposal. Right now (in my proposal)
the information that I previously had being returned with the "Location"
header is now being returned with the "Link" header. (See section
19.6.2.4of RFC 2068 for more information on the "Link" header.)
Basically though
the "Link" header basically has the same semantics as the HTML <link>
element.
Given that,... the header I was proposing is now called "X-If-No-Link".
So, getting back to you question... Yes, these are ideas for future
browsers. My project (that is motivating this work) is being built on the
Mozilla application framework (using
XULRunner<http://developer.mozilla.org/en/docs/XULRunner>).
So I could imagine it very easily getting into Firefox via an extention.
(And if people find it useful and it becomes popular I could see it getting
into the mainstream web browsers. But as far as my work is concerned it
doesn't have to.)
Now, as far as current browsers are concerned, if you mandate that you don't
want to install anything, then you could do some of this via an
XmlHttpRequest (or a GM_xmlHttpRequest is you are using Greasemonkey). You
could make a request and set all the "X-If-No-Link" headers that you want.
And then when you get the response, you could check for the "Link" headers.
See ya
--
Charles Iliya Krempeaux, B.Sc.
charles @ reptile.ca
supercanadian @ gmail.com
developer weblog: http://ChangeLog.ca/
___________________________________________________________________________
Make Television http://maketelevision.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://zgp.org/pipermail/p2p-hackers/attachments/20060216/b633c8e8/attachment.html
More information about the P2p-hackers
mailing list