*
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 Android Security Essentials Live Lessons this week in the Android 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
 
 
subject: Content Type
 
Similar Threads
AJAX - responseXML is empty
Setting content-type in HTTPURLConnection ?
Loading an XML using Ajax
Running same servlet in different browser windows
HTML source code while displaying JSP