Solved

content type MIME

Posted on 2014-03-26
2
295 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

749 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