3 Replies Latest reply: Dec 14, 2008 12:15 PM by 807589 RSS

    Content type when using Http post (Apache HttpClient)

    807589
      Hi,

      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.