I need to set the contentType on the URLConnection.
I am opening a connection to a servlet, writing a binary to that open stream and closing it. This binary could be an powerpoint, word document or pdf file.
I need to be able to set the request type how can this be done as there is no setContentType method on the class URLConnection.
Thanks in advance