[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Binary XML == "spawn of the devil" ?


binary xml example
Simon St.Laurent wrote:
> robin.berjon@e... (Robin Berjon) writes:
>>In fact, if HTTP 1.1 content codings took parametres, we'd have the
>>answer already. Damn :)
> 
> I'm not entirely sure what you're looking for - and Len's reply makes me
> even less certain - but Content-Type header fields definitely take
> parameters:

Content-Type, yes, Content-Encoding/Accept-Encoding (aka content codings), no:

http://www.w3.org/Protocols/rfc2068/rfc2068

Section 3.5

           content-coding   = token

    All content-coding values are case-insensitive. HTTP/1.1 uses
    content-coding values in the Accept-Encoding (section 14.3) and
    Content-Encoding (section 14.12) header fields. Although the value
    describes the content-coding, what is more important is that it
    indicates what decoding mechanism will be required to remove the
    encoding.


Section 14.3

    The Accept-Encoding request-header field is similar to Accept, but
    restricts the content-coding values (section 14.12) which are
    acceptable in the response.

           Accept-Encoding  = "Accept-Encoding" ":"
                                     #( content-coding )

    An example of its use is

           Accept-Encoding: compress, gzip


Section 14.12

    The Content-Encoding entity-header field is used as a modifier to the
    media-type. When present, its value indicates what additional content
    codings have been applied to the entity-body, and thus what decoding
    mechanisms MUST be applied in order to obtain the media-type
    referenced by the Content-Type header field. Content-Encoding is
    primarily used to allow a document to be compressed without losing
    the identity of its underlying media type.

           Content-Encoding  = "Content-Encoding" ":" 1#content-coding

    Content codings are defined in section 3.5. An example of its use is

           Content-Encoding: gzip


-- 
Robin Berjon <robin.berjon@e...>
Research Engineer, Expway        http://expway.fr/
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.