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

Re: Accept-Charset and XML declaration?

  • From: Julian Reschke <julian.reschke@g...>
  • To: bryan rasmussen <rasmussen.bryan@g...>
  • Date: Wed, 27 Feb 2008 15:14:32 +0100

Re:  Accept-Charset and XML declaration?
bryan rasmussen wrote:
> On Wed, Feb 27, 2008 at 1:24 PM, Chris Burdess <dog@b...> wrote:
>> bryan rasmussen wrote:
>>  > I was just wondering, what SHOULD happen if I have an XML file server
>>  > side that has encoding UTF-16 with a declaration of that, and my
>>  > accept-charset header sent by my client is iso-8859-1?
>>
>>  406
> 
> I figure it's a 406 if the server is XML aware, but if it was XML
> aware it could go ahead and transform the UTF-8 to iso-8859-1 and send
> it, in which case it wouldn't need to do a 406.

Note that 406 is truly optional, see

"Note: HTTP/1.1 servers are allowed to return responses which are not 
acceptable according to the accept headers sent in the request. In some 
cases, this may even be preferable to sending a 406 response. User 
agents are encouraged to inspect the headers of an incoming response to 
determine if it is acceptable." -- 
<http://greenbytes.de/tech/webdav/rfc2616.html#rfc.section.10.4.7>

BR, Julian


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.