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.

Where's my JSON data in my incoming Django request?

I'm trying to process incoming JSON/Ajax requests with Django/Python. request.is_ajax() is True on the request, but …

python ajax json django content-type
HTTP Headers for File Downloads

I've written a PHP script that handles file downloads, determining which file is being requested and setting the proper HTTP …

php http-headers download content-type
Create request with POST, which response codes 200 or 201 and content

Suppose I write a REST service whose intent is to add a new data item to a system. I plan …

rest content-type http-status-codes
New lines (\r\n) are not working in email body

I am using PHP mail() function: $to = 'AAAA <[email protected]>'; $subject = 'BBBB'; $message = "CCCC\r\nCCCC …

php email newline content-type
Difference between application/x-javascript and text/javascript content types

What is the difference between these headers? Content-Type: application/javascript Content-Type: application/x-javascript Content-Type: text/javascript Which one is best …

javascript http-headers content-type
Mail multipart/alternative vs multipart/mixed

When creating email messages you are supposed to set the Content-Type to multipart/alternative when sending HTML and TEXT or …

email smtp content-type mime
SharePoint : How can I programmatically add items to a custom list instance

I am really looking for either a small code snippet, or a good tutorial on the subject. I have a …

c# sharepoint content-type
Do I need a content-type header for HTTP GET requests?

As far as I understood there are two places where to set the content type: The client sets a content …

http get content-type
Set Content-Type to application/json in jsp file

I am created some jsp file that returns as a response some json string. But I see that the Content-Type …

java http jsp http-headers content-type
How do I find the mime-type of a file with php?

Ok, so I have an index.php file which has to process many different file types. how do I guess …

php filesystems http-headers content-type