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.

How to set WebClient Content-Type Header?

To conect to a third party service I need to make a Https Post. One of the requisites set is …

c# content-type webclient
Avoiding content type issues when downloading a file via browser on Android

If I have a file made available to a browser through my webapp, I normally just set the URL to …

android browser download content-type content-disposition
Determine file type in Ruby

How does one reliably determine a file's type? File extension analysis is not acceptable. There must be a rubyesque tool …

ruby content-type mime-types file-type
Using a UUID as a primary key in Django models (generic relations impact)

For a number of reasons^, I'd like to use a UUID as a primary key in some of my Django …

django django-models primary-key content-type uuid
How to specify the character set in the HTTP Content-Type response header?

I had my site tested with the Page Speed app from Google and one of the suggestions was to specify …

optimization character-encoding http-headers content-type
Unable to delete SharePoint 2010 ContentType "Contenty type in use."

I have tried all the recommendations on the web, to no avail. I wrote a console application per these instructions: …

sharepoint-2010 content-type
Return jpeg image from Asp.Net Core WebAPI

Using asp.net core web api, I want to have my controller action method to return an jpeg image stream. …

asp.net-core content-type asp.net-core-webapi
Display image from http response with image content type

Let's say I have url and don't know what it will return. I perform ajax call to that url with …

javascript html image httpresponse content-type
How to change content type in php?

I have an image, but it keep doesn't display. I check the image properties (right-click and chose properties), and the …

php http-headers content-type
GET Request with Content-Type and Accept header with JAX-RS Jersey 2.2

I try to access an open data web service which gives me traffic infos. Documentation says that requests have to …

web-services rest jersey jax-rs content-type