W3C home > Mailing lists > Public > public-webapi@w3.org > June 2007

Re: Recent spec change to XMLHttpRequest default Content-Type

From: Julian Reschke <julian.reschke@gmx.de>
Date: Fri, 15 Jun 2007 11:08:00 +0200
Message-ID: <467256F0.3010904@gmx.de>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: Carsten Orthbandt <carsten@pixeltamer.net>, public-webapi@w3.org

Bjoern Hoehrmann wrote:
> * Carsten Orthbandt wrote:
>> Bjoern Hoehrmann schrieb:
>>> Why don't you use less &, <, and ]]> sequences in the content and wrap
>>> it into <x>...</x>?
>> If my response body is (literal example)
>>
>> ---snip---
>> ut:7325
>> ubc:0
>> ---snap---
>>
>> there's obviously some hesitation to wrap that as
>>
>> ---snip---
>> <?xml version="1.0"?>
>> <x>
>> ut:7325
>> ubc:0
>> </x>
>> ---snap---
> 
> It would be sufficient to use <x>ut:7325,ubc:0</x>. The massive amount
> of overhead generated by the connection setup and request and response
> headers hardly compare to those 7 bytes.

Or even

   <x ut="7325" ubc="0"/>

, removing the need for a custom parser.

Best regards, Julian
Received on Friday, 15 June 2007 09:08:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:18:57 GMT