File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes How to get the request content... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to get the request content..." Watch "How to get the request content..." New topic

How to get the request content...

Hongqing Lu

Joined: Jan 14, 2004
Posts: 13
There is a HTTP Post like this from a client:
POST http://local:8080/test HTTP/1.1
Content-Type: text/xml
Content-Length: 210
<?xml version="1.0" encoding="UTF-8"?>
<DateTime>11/10/2003 06:33:33</DateTime>
I need to get the content of the xml through servlet.
What can I do?
Please help
Arnold Reuser
Ranch Hand

Joined: Nov 20, 2003
Posts: 194
Why don't you use :
ServletInputStream sip = myRequest.getInputStream();
in the doPost()-method ?
I agree. Here's the link:
subject: How to get the request content...
Similar Threads
Total newby JSP if block question is this legal
[Problem]Tomcat 6.x with Active Directory on Windows Server 2003
XPath returning Boolean not Node problem
Who's using Jersey for JAX-RS (JSR-311)?
Redirect to the requested page failed using form-based authentication