3 Replies Latest reply on Dec 14, 2008 6:15 PM by 807589

    Content type when using Http post (Apache HttpClient)


      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.