setContentType(); is a signal to the browser to tell what is coming, i understood you are doing a stand alone application. if you are trying to create your own browser with special features and can recognize the content type then yes you have to tell it. however if your stand alone application is only try to access the server to do some work to your web application so there is no need to that, you can rerurn what ever you want as long as your application knows what is getting.
Firas
|