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.

Auto-Launch JNLP on click

How do I get a JNLP file to auto-launch on click? (as opposed to clicking save or open when clicked) …

java mime-types content-type jnlp
When serving JavaScript files, is it better to use the application/javascript or application/x-javascript

The whole question fits in the title. And to add some context: I'm not asking what is the best according …

javascript http content-type
HttpClient setting boundary with content-type

I am using javascript to communicate with a third party service. As part of their authentication process they need the "…

c# javascript httpclient content-type boundary
Set default content_type for Sinatra

In Sinatra, is it possible to make content_type 'application/json' the default? cause I'm writing an api.

ruby json sinatra content-type
Detecting a file's content-type when using JavaScript's FileReader interface

I've been setting up an import script for plain-text files in a web application. My script is as follows: function …

javascript import content-type plaintext filereader
Setting the content-type of requests performed by jQuery jqGrid

I am using the latest version of jqGrid: 3.6.4 This seems like a simple problem (or at least it did before …

jquery jqgrid content-type
How to set http.ResponseWriter Content-Type header globally for all API endpoints?

I am new to Go and I'm building a simple API with it now: package main import ( "encoding/json" "fmt" "…

json rest go content-type mux
Decoding HTML entities with Python

I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out what I am doing wrong. …

python unicode character-encoding content-type beautifulsoup
HttpResponseMessage Content won't display PDF

I have created a Web Api that returns an HttpResponseMessage in which the content is set to a PDF file. …

asp.net-mvc pdf asp.net-web-api content-type
x-www-form-urlencoded Vs json HTTP POST

It's hard to decide, currently I'm sending data as x-www-form-urlencoded with php lib curl with curl_setopt($curl, CURLOPT_POSTFIELDS, …

php json forms curl content-type