Content type when using Http post (Apache HttpClient)
807589Dec 14 2008 — edited Dec 14 2008Hi,
I'm using Apaches HttpClient with a PostMethod to post an xml document to a server. (the xmldocument is the only parameter - xml=<xmldocument>)
In return I get a html-snippet.
I need to set the ContentType and encoding in the header of the post.
I know how to do it (setRequestHeader() method), but not sure what value I should use for ContentType?
/best regards, HÃ¥kan Jacobsson - System developer in Sweden, Stockholm.