content-negotiation
JSON/XML output in GUI, BLL or DTO?
I\'m using content-negotiation, so depending on the header of the request I provide JSON/XML output. Now I was wondering what the best location is for providing this functionality.[详细]
2023-04-12 00:31 分类:问答How do I discover what content types a HTTP POST service allows?
I am writing a client for OpenTox webservices, but several services they provide have optional support for certain MIME types with only a few obligatory, e.g. this Dataset service. So I need to discov[详细]
2023-03-31 23:50 分类:问答What are the Pros and Cons of using URI vs Accept Headers for REST content format negotiation?
Based on info in the following question REST Content-Type: Should it be based on exten开发者_JS百科sion or Accept header?, I\'m aware either custom URIs or specifying Accept Headers are \'acceptable\'[详细]
2023-03-11 09:25 分类:问答JSONP and Custom Filter Returning XML instead in Spring MVC
I am using JSONP to call a controller service in Spring MVC.I have a custom filter that returns the result wrapped in the callback.I used this example, http://jpgmr.wordpress.com/2010/07/28/tutorial-i[详细]
2023-02-19 15:45 分类:问答HTTP Accept Header meaning
When a browser\'s Accept request header says something like the following: Accept: applicat开发者_开发技巧ion/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5[详细]
2023-02-17 02:10 分类:问答Spring MVC Content Negotiation with HttpMessageConverter
For a recent project we wanted to support XML and another format for our resopnses. However, we could not control the Accept header. Hence we configured a ContentNegotiatingViewResolver to use a requ[详细]
2023-01-14 12:21 分类:问答Grails Content Negotiation - handling unsupported type
We are using content negotiation in our service using the Accept header and the withFo开发者_如何转开发rmat method....the issue we are facing is that we want to return a 406 http status if the Accept[详细]
2023-01-14 08:17 分类:问答Serving XHTML as application/xhtml+xml with Ruby on Rails
I\'m trying to get my Rails app to serve XHTML content properly, with the correct content-type of application/xhtml+xml. Ideally with content negotiation so that IE users get a chance to use the site[详细]
2023-01-05 21:33 分类:问答Rest Content Negotiation and Caching
I\'m wondering h开发者_运维问答ow caching works with content negotiation based API. Since the to get a resource in XML or JSON, the URI will be the same, for example:[详细]
2023-01-02 19:58 分类:问答Is there a C# or .NET class to handle HTTP Content Negotiation?
Is there a C# or .NET class to handle HTTP Content Negotiation with a User Agent? I would like to be able to supply a list of acceptable Content Types, and have those negotiated with the browser to f[详细]
2022-12-31 21:25 分类:问答