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
Content-Type: text/xml; charset=UTF-8
<?xml version="1.0" encoding="UTF-8"?>
(insert XML data here)
.. in fact, that was ripped directly out of wireshark. The useragent
there is httpclient, but actual clients are just standard web browsers.
I cannot figure out how to read this posted data from the servlet. I've
combed every inch of the javadocs that I can find, and I've even fired
up a remote debugger and examined the HttpRequest object in some awesome
detail. I've tried to use getInputStream() but .available() does nothing
more than return 0 - not going to get me anywhere.
How should I read this request?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org