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.

Export content type in Drupal 7

Is there a way to export a content type from a site and import it to another? I haven't found …

drupal import drupal-7 export content-type
What is the correct Protobuf content type?

JSON has application/json as a standard. For protobuf some people use application/x-protobuf, but I saw something as odd …

mime-types protocol-buffers content-type
What's the difference of ContentType and MimeType

As far as I know, they are absolute equal. However, browsing some django docs, I've found this piece of code: …

python django content-type mime-types
What is the exact difference between content-type: text/json and application/json?

What is the exact difference between Content-type: text/json Content-type: application/json I've been using them randomly and never find …

http header content-type
How can I obtain the model's name or the content type of a Django object?

Let's say I am in the save code. How can I obtain the model's name or the content type of …

python django django-models content-type
How to change Content-Type of GET-Request via firefox addon RESTClient

I want to send GET-Requests which shall be answered by my REST-API. My java programm currently supports text/plain, text/…

rest jersey content-type rest-client media-type
How to get file extension from content type?

I'm using Apache Tika, and I have files (without extension) of particular content type that need to be renamed to …

java content-type apache-tika
Determine file type of an image

I'm downloading some images from a service that doesn't always include a content-type and doesn't provide an extension for the …

.net image content-type mime-types
how to post plain text to ASP.NET Web API endpoint?

I have an ASP.NET Web API endpoint with controller action defined as follows : [HttpPost] public HttpResponseMessage Post([FromBody] object …

text asp.net-web-api http-post content-type http-request
Can't send a post request when the 'Content-Type' is set to 'application/json'

I am working on a React application and I am using fetch to send a request. I have made a …

json reactjs cors fetch content-type