Do you have control over how the request is composed? If so, you can put the XML data in a parameter say "xmldoc" and the equivalent GET request will look like the following
http://URL?xmldoc=<yourXML>...</yourXML> ("<" and ">" not escaped) Then in your program do request.getParameter("xmldoc"); to get the xml data. kimmy ----- Original Message ----- From: "tom ly" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 3:16 PM Subject: How do I read only the XML data in doPost(req,res)? > I'm receiving a HTTP POST request containg XML data and want to process the data in the doPost method of my servlet. When I do request.getContentLength(), it gives the length of the entire request including the HTTP header etc, but I only want the XML portion of it. I can't find any Java methods which will return only the data part of the request. How can I do this? > > Thanks, > Tom > > > > > --------------------------------- > Do you Yahoo!? > Win 1 of 4,000 free domain names from Yahoo! Enter now. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]