From: Asynch M. <asy...@ho...> - 2004-01-31 05:19:13
|
> > > We also support a variety of non-JavaScript clients, from Python to > > > Perl to PHP, and Java and Ruby and C. For these clients we have a > > > simpler data format that doesn't require JavaScript or HTML parsing. > > Since 1.0 Pushlets support the "format" parameter where on subscription > > the client can indicate the data encoding to be received. Supported > > formats are "js" (JavaScript, default), "xml" and "ser" (serialized Java > > objects). So a client may even use telnet to receive XML events. > > That's really cool. Ours is called kn_response_format and the formats > we support presently are "js" (JavaScript, default), "simple" (header > value pairs in RFC822-like format), and "flash" (Flash, only supported > in the Python version of our PubSub Server). Is the 'js' format really HTML + JS? You know, there are IANA registered mime types for those. http://www.iana.org/assignments/media-types/ And HTTP request headers for requesting them too. Accept: text/javascript; text/ecmascript; text/xml; message/rfc822; application/x-java-serialized-object; Apparently text/javascript; text/ecmascript; are not yet registered. http://www.websitedev.de/ietf/draft-hoehrmann-script-types-00.txt |