Hello,

if a browser requests to a REST server, some browsers (Firefox and IE for example, Opera not) requests text/xml and application/xml with a higher quality than text/html. So, if the server want to allow HTML and XML data (e.g. for data about persons) and choose by the quality of the accepted Media Types, it returnes ever XML and not HTML to the browser. This is not useful. Must I first check, if text/html (or text/xhtml) is accepted and ignore the quality? Or should I use the MediaType application/person+xml instead of application/xml?

best regards
  Stephan

Reply via email to