What I really meant was to write a parameter "xmldoc=<yourXML>...</yourXML>" into the outputstream of the HttpURLConnection like the following to make it a Post.
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream()); wr.write(params); Not sure whether there is any limit this way though. But Request#getInputStream() does provide the request body w/o the header. kimmy ----- Original Message ----- From: "QM" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, August 31, 2004 6:27 PM Subject: Re: How do I read only the XML data in doPost(req,res)? > On Tue, Aug 31, 2004 at 06:15:59PM -0400, Kimmy Lin wrote: > : http://URL?xmldoc=<yourXML>...</yourXML> > : request.getParameter("xmldoc"); > > The OP may run into some limits with that, unless those are very small > XML docs. =) > > Doesn't Request#getInputStream() provide the body? -or does it get the > whole request, headers and all? > > -QM > > -- > > software -- http://www.brandxdev.net > tech news -- http://www.RoarNetworX.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]