Top "Content-type" questions

The Content-Type entity-header field indicates the media type of the entity-body sent to the recipient or, in the case of the HEAD method, the media type that would have been sent had the request been a GET.

Content-Type header [application/x-www-form-urlencoded] is not supported on Elasticsearch

I used to have ElasticSearch 5.2, and just upgraded to 6.0. I am trying to create an index template following guide here, …

elasticsearch curl mime-types content-type http-put
How to get the content/type of a file at runtime

I am trying to determine dynamically the content/type of a input file. If I would be in a windows …

c# asp.net-mvc asp.net-mvc-2 content-type
File extensions and MIME Types in .NET

I want to get a MIME Content-Type from a given extension (preferably without accessing the physical file). I have seen …

.net asp.net content-type mime file-extension
Spring MVC @RequestMapping headers can accept only one value?

This will work: @RequestMapping(value = "/test", method = RequestMethod.POST, headers = {"content-type=application/json"}) { ....... } If I add another value to it …

spring-mvc http-headers content-type
How do you send a HEAD HTTP request in Python 2?

What I'm trying to do here is get the headers of a given URL so I can determine the MIME …

python python-2.7 http http-headers content-type
Spring MVC 3 Return Content-Type: text/plain

I want to display simple text on a page and as such I want to return the Content-Type as text/…

java spring-mvc content-type apache-tiles
How to force parse request body as plain text instead of json in Express?

I am using nodejs + Express (v3) like this: app.use(express.bodyParser()); app.route('/some/route', function(req, res) { …

json node.js express content-type connect
In C#, how can I know the file type from a byte[]?

I have a byte array filled from a file uploaded. But, in another part of the code, I need to …

asp.net-mvc c#-3.0 bytearray content-type
Set Content-type of media files stored on Blob

We have a website hosted on Azure. It is media based, and we are using JWPlayer to playback media with …

azure content-type jwplayer
What is the HTTP "content-type" to use for a blob of bytes?

What is the HTTP "content-type" to use when returning a blob of bytes in response to a client's GET request? …

http http-headers content-type pickle