Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

content type MIME

Posted on 2014-03-26
2
294 Views
Last Modified: 2014-04-22
Hi,

i was reading as below
(http://www.javatpoint.com/servlet-terminology)


Content Type

Content Type is also known as MIME (Multipurpose internet Mail Extension) Type. It is a HTTP header that provides the description about what are you sending to the browser.

There are many content types:

    text/html
    text/plain
    application/msword
    application/vnd.ms-excel
    application/jar
    application/pdf
    application/octet-stream
    application/x-zip
    images/jpeg
    video/quicktime etc.


My question is MIME(headerInformation) sent from server (like web server which hosts the servlet) to the browser which is like HTML/jsp page?

Is my understanding is correct.
please advise
Any links resources ideas highly appreciated. Thanks in advance
0
Comment
Question by:gudii9
2 Comments
 
LVL 75

Assisted Solution

by:käµfm³d 👽
käµfm³d   👽 earned 250 total points
ID: 39956610
It is sent both by the client to the server and the server to the client. A client may very well be uploading a file to the server. A server might benefit from knowing the type of file being submitted to it.

"Client" can be remote application communicating with a server, including a web browser.
0
 
LVL 35

Accepted Solution

by:
mccarl earned 250 total points
ID: 39957740
I'll also add to kaufmed (correct) answer, that MIME types are also used in other HTTP headers. For example, there is an Accept header that a client (typically) will include within a request to a server, that specifies what types of content that the client is happy to accept.

Content Type is also known as MIME (Multipurpose internet Mail Extension) Type
I don't 100% agree with this statement. I know what they mean, but the wording is not the best. You wouldn't say "Content-Type is also known as MIME", you would say "The Content-Type header contains a value which is a MIME type"

Or to put it another way, MIME types are used in many places in HTTP (and other protocols). The HTTP "Content-Type" header is just one of those many that uses MIME types as it's value.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question