Re: Reading POSTed data

2009-06-17 Thread Kyle Brantley
Tim Funk wrote: available() - Returns the number of bytes that can be read (or skipped over) from this input stream without blocking by the next caller of a method for this input stream. So its not an accurate gauge of how much content is available from the client. That explains that quite

Re: Reading POSTed data

2009-06-17 Thread Kyle Brantley
André Warnier wrote: To me thus, the correct way - and the only way a browser would do it - to POST this data, would be in the form of a multipart/form-data body, itself composed of a MIME header and a body that would be the XML blob. If I may: function loadXMLDoc(xmlRequest) {

Re: Reading POSTed data

2009-06-17 Thread Kyle Brantley
André Warnier wrote: Kyle Brantley wrote: ... My point, is that it is entirely possible for a browser to POST data to a resource without sending it as multipart/form-data or application/x-www-form-urlencoded. Hey! that is cheating. You never mentioned Javascript before. ;-) But true. I

Reading POSTed data

2009-06-16 Thread Kyle Brantley
I'm just starting poking with servlets, and simply cannot figure out how to do this. I'm trying to read data which is posted directly to the server. The HTTP POST looks something like this: POST /api/ HTTP/1.1 User-Agent: Jakarta Commons-HttpClient/3.1 Host: averageurl.com Content-Length: 94

Re: Reading POSTed data

2009-06-16 Thread Kyle Brantley
Caldarale, Charles R wrote: From: Kyle Brantley [mailto:k...@averageurl.com] Subject: Reading POSTed data I'm trying to read data which is posted directly to the server. I'll assume you have a doPost() method in your servlet. I do. I cannot figure out how to read this posted data

Re: Reading POSTed data

2009-06-16 Thread Kyle Brantley
On 06/16/2009 09:36 PM, Caldarale, Charles R wrote: From: Len Popp [mailto:len.p...@gmail.com] Subject: Re: Reading POSTed data Ah, but section 3.1.1 says that POST data is only available through getParameter if the content type is application/x-www-form-urlencoded. You're right, I missed