File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Content Type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Content Type" Watch "Content Type" New topic
Author

Content Type

Drew Lane
Ranch Hand

Joined: May 13, 2001
Posts: 296
When I tell the server that I'm about to send content type of "application/x-www-form-urlencoded", what does the server do in reponse to this as opposed to some other content type?

Where is it specified how the server should react to this?

Thanks,

Drew
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
The server does nothing. It's up to the client to do what it can with that content type.


42
Drew Lane
Ranch Hand

Joined: May 13, 2001
Posts: 296
Originally posted by Jeroen Wenting:
The server does nothing. It's up to the client to do what it can with that content type.


If the server does nothing, then why should the client bother to send that information in the first place?

Drew
 
jQuery in Action, 2nd edition
 
subject: Content Type
 
Similar Threads
Loading an XML using Ajax
HTML source code while displaying JSP
AJAX - responseXML is empty
Running same servlet in different browser windows
Setting content-type in HTTPURLConnection ?