Solved

content type MIME

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

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
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…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now